ChannelFilter

public final class ChannelFilter

Channel filter conditions.

Used for Search messages When constrain Search range channel, Corresponds to internal io.rong.imlib.params.ConversationFilter.

Usage Example:

// Search private chat and group chat message
val filter = ChannelFilter(
channelTypes = listOf(ChannelType.DIRECT, ChannelType.GROUP)
)

val filter = ChannelFilter(* channelTypes = listOf(ChannelType.GROUP),
val filter = ChannelFilter(
channelTypes = listOf(ChannelType.GROUP),
channelIds = listOf("group_001", "group_002")
)

Parameters

channelTypes

频道类型列表

channelIds

频道 ID 列表,null 表示不限定具体频道

Constructors

Link copied to clipboard
public ChannelFilter ChannelFilter(List<ChannelType> channelTypes, List<String> channelIds)

Properties

Link copied to clipboard
private final List<String> channelIds
Link copied to clipboard
private final List<ChannelType> channelTypes

Functions

Link copied to clipboard
public final List<String> getChannelIds()
Link copied to clipboard
public final List<ChannelType> getChannelTypes()