CommunityChannelSearchMessagesByKeywordQuery

public final class CommunityChannelSearchMessagesByKeywordQuery implements PageableQuery<Message>

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
}
}

Properties

Link copied to clipboard
private final Boolean isLoading

Whether positive In load.

Functions

Link copied to clipboard
public Boolean isLoading()

Whether positive In load.

Link copied to clipboard
public Unit loadNextPage(OperationHandler<List<Message>> handler)

Load next page data.