Last active
January 30, 2017 10:51
-
-
Save ledzep9012/d6d7fb94e7db22327e82da07a9aceb8a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mUserListQuery = SendBird.createUserListQuery(); | |
//Setting limit of users | |
mUserListQuery.setLimit(30); | |
if (mUserListQuery != null && mUserListQuery.hasNext() && !mUserListQuery.isLoading()) { | |
mUserListQuery.next(new UserListQuery.UserListQueryResultHandler() { | |
@Override | |
public void onResult(List<User> users, SendBirdException e) { | |
for (User user : users) { | |
Log.d(TAG, user.getUserId() + ":" + user.getNickname()); | |
} | |
// Use List of users to set items in your custom view | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment