SDKsAndroid
Check group membership
Use isJoinGroup to determine whether the current signed-in user has joined a group.
isJoinGroup() checks whether the current signed-in user has joined the target group. Its parameter is groupID.
OpenIMClient.getInstance().groupManager.isJoinGroup(groupID, new OnBase<Boolean>() {
@Override public void onSuccess(Boolean joined) { /* joined indicates whether the user is a member. */ }
@Override public void onError(int code, String error) { /* code and error describe the failure. */ }
});Was this page helpful?