CommunityRemoteMessagesQuery

public final class CommunityRemoteMessagesQuery implements PageableQuery<Message>

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

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

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

Usage Example:

val params = CommunityRemoteMessagesQueryParams().apply {
pageSize = 30
}
val query = communityChannel.createRemoteMessagesQuery(params)

query.loadNextPage { messages, error ->
if (error == null && messages != null) {
// Handle remote 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.