Community Messages Query
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:
All type query: Not Set CommunityMessagesQueryParams.messageType, Returns all message types.
Query by type: Set completed CommunityMessagesQueryParams.messageType, Returns only specified message types.
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
}
}Content copied to clipboard