search Channels
public final Unit searchChannels(SearchChannelsParams params, OperationHandler<List<SearchChannelResult>> handler)
channelTypes = listOf(ChannelType.DIRECT, ChannelType.GROUP)
).apply {
Parameters
message Ids
Message unique ID List, at most 20
val params = SearchChannelsParams(
keyword = "hello",
channelTypes = listOf(ChannelType.DIRECT, ChannelType.GROUP)
).apply {
objectNames = listOf("RC:TxtMsg")
}
BaseChannel.searchChannels(params) { results, error ->
if (error == null && results != null) {
results.forEach { result ->
println("${result.channel.channelId} matched ${result.matchCount} messages")
}
}
}Content copied to clipboard
BaseChannel.syncRemoteChannels { error -> if (error == null) {