public final class FriendListQuery
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static interface |
FriendListQuery.FriendListQueryResultHandler
FriendListQueryResult handler.
|
Modifier and Type | Method and Description |
---|---|
boolean |
hasNext()
Checks if there is a next page.
|
boolean |
isLoading()
Checks if the current query is in communication progress with server.
|
void |
next(FriendListQuery.FriendListQueryResultHandler handler)
Gets the list of friends.
|
void |
setLimit(int limit)
Sets the maximum number of friends per queried page.
|
public void setLimit(int limit)
limit
- The maximum number of friends per page.public boolean hasNext()
true
if there is a next page.public boolean isLoading()
true
if the current query is not finished.public void next(FriendListQuery.FriendListQueryResultHandler handler)
handler
as List
.
If this method is repeatedly called after each next()
is finished, it retrieves the following pages of the friends list.
If there is no more pages to be read, an empty List
(not null
)
is returned to handler
.handler
- A callback handler to get the queried result. Copyright © 2021, Sendbird or its affiliates. All rights reserved.
Report a bug or request a feature
For further developer documentation, see Chat SDK Documentation. That documentation contains more detailed descriptions, conceptual overviews, definitions of terms, and code examples.