Community Channel Search Messages By Keyword Query
community channel specified sub-channel Keyword Message search Pagination query object.
In community channel specified sub-channel by Keyword Search messages, Supports Pagination.
Based on Parameter Configuration auto-select Search mode:
Simple search: Not Set Time range, Uses Timestamp Cursor Pagination.
Time range search: Set completed startTime and endTime, Uses offset Pagination.
Via com.nexconn.chat.channel.CommunityChannel.createSearchMessagesByKeywordQuery Create instance, Not cannot be constructed directly.
Usage Example:
// Simple search
val params = CommunitySearchMessagesByKeywordParams(
channelId = "community_1",
subChannelId = "sub_001"
).apply {
keyword = "hello"
pageSize = 20
}
val query = CommunityChannel.createSearchMessagesByKeywordQuery(params)
query.loadNextPage { messages, error ->
if (error == null && messages != null) {
// Handle search results
}
}Content copied to clipboard