MembersByRoleQuery

public final class MembersByRoleQuery implements PageableQuery<GroupMemberInfo>

by Role Query Group member Pagination query object.

Implements PageableQuery Interface, Provides by Role Pagination load Group member 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.createGroupMembersByRoleQuery Create instance, Not cannot be constructed directly.

Usage Example:

val params = MembersByRoleQueryParams().apply {
role = GroupRole.MANAGER
pageSize = 50
}
val query = groupChannel.createMembersByRoleQuery(params)

query.loadNextPage { list, error ->
if (error == null && list != null) {
// Handle Data
}
if (query.hasMore) {
query.loadNextPage { ... }
}
}

Properties

Link copied to clipboard
private final Boolean hasMore
Link copied to clipboard
private final Boolean isLoading

Whether positive In load.

Functions

Link copied to clipboard
public final Boolean getHasMore()
Link copied to clipboard
public Boolean isLoading()

Whether positive In load.

Link copied to clipboard

Load next page data.