SDKsAndroid
Invite users to a group
Use inviteUserToGroup to invite a list of users to a group.
Pass the group ID, the list of invited user IDs, and an invitation message. A successful call means that the invitation request was submitted; after a user joins, receive the notification through onGroupMemberAdded.
OpenIMClient.getInstance().groupManager.inviteUserToGroup(new OnBase<String>() {
@Override public void onSuccess(String data) { /* The request completed. */ }
@Override public void onError(int code, String error) { /* code and error describe the failure. */ }
}, groupID, inviteeUserIDs, "Join the project discussion");Was this page helpful?