Skip to content

Instantly share code, notes, and snippets.

@ledzep9012
Last active January 30, 2017 10:51
Show Gist options
  • Save ledzep9012/d6d7fb94e7db22327e82da07a9aceb8a to your computer and use it in GitHub Desktop.
Save ledzep9012/d6d7fb94e7db22327e82da07a9aceb8a to your computer and use it in GitHub Desktop.
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