Browse SDKs · Android
SDKsAndroid

Dismiss a group

Use dismissGroup to dismiss a group that the current user is allowed to manage.

Copy

dismissGroup() dismisses the specified group and is available only to its owner.

OpenIMClient.getInstance().groupManager.dismissGroup(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);

Use onGroupDismissed to receive the group dismissal notification.