CommunitySearchMessagesQuery

public final class CommunitySearchMessagesQuery implements PageableQuery<Message>

community channel all sub-channel Message search Pagination query object.

In community channel all sub-channel by Keyword Search messages, Supports Pagination.

Via com.nexconn.chat.channel.CommunityChannel.createSearchMessagesQuery Create instance, Not cannot be constructed directly.

Usage Example:

val params = CommunitySearchMessagesParams(channelId = "community_1").apply {
keyword = "hello"
pageSize = 20
}
val query = CommunityChannel.createSearchMessagesQuery(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.