SDKsAndroid
Change group mute status
Use the Android SDK to enable or disable mute-all mode for a group.
Use changeGroupMute() to toggle mute-all mode. Pass true to enable it or false to disable it. To mute one member, see Mute or unmute a group member.
OpenIMClient.getInstance().groupManager.changeGroupMute(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, true);A successful callback means that the setting request completed; it does not mean that every client has updated its UI. onGroupInfoChanged provides the updated GroupInfo. Merge it by groupID. See Group overview for the complete listener setup.
Was this page helpful?