SDKsAndroid
Search group members
Use searchGroupMembers to search group members by user ID or group nickname.
Provide a keyword list, switches for user ID and group nickname matching, and pagination parameters.
OpenIMClient.getInstance().groupManager.searchGroupMembers(
new OnBase<List<GroupMembersInfo>>() {
@Override public void onSuccess(List<GroupMembersInfo> members) { /* members contains the matches. */ }
@Override public void onError(int code, String error) { /* code and error describe the failure. */ }
}, groupID, Collections.singletonList(keyword), true, true, 0, 20);The search is limited to the target group. Do not make the request with an empty keyword or with both search switches disabled.
Was this page helpful?