CommunityMessagesQuery

public final class CommunityMessagesQuery implements PageableQuery<Message>

community channel specified sub-channel History message pagination query object.

Get community channel specified sub-channel history message, Supports Pagination. channelId and subChannelId From CommunityChannel Instance Get.

Based on Parameter Configuration auto-select Query mode:

Via CommunityChannel.createMessagesQuery Create instance, Not cannot be constructed directly.

Usage Example:

val params = CommunityMessagesQueryParams().apply {
pageSize = 30
}
val query = communityChannel.createMessagesQuery(params)

query.loadNextPage { messages, error ->
if (error == null && messages != null) {
// Handle history messages
}
}

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.