Joined Groups By Role Query
by Role Query Already Join group Pagination query object.
Implements PageableQuery Interface, Provides Pagination load Already Join group List capability. See SendBird Query mode, Via loadNextPage Load data page by page, Via hasMore Check if there is more data.
Via com.nexconn.chat.channel.GroupChannel.createJoinedGroupsByRoleQuery Create instance, Not cannot be constructed directly.
Usage Example:
val params = JoinedGroupsByRoleQueryParams().apply {
role = GroupRole.OWNER
count = 50
}
val query = GroupChannel.createJoinedGroupsByRoleQuery(params)
query.loadNextPage { list, error ->
if (error == null && list != null) {
// Handle Data
}
if (query.hasMore) {
query.loadNextPage { ... }
}
}Content copied to clipboard