Skip to main content

Get global Mute Notifications configuration.

Callback Parameters

NameTypeDescriptionVersion
errorCodeintError code. 0 indicates success.1.1.0
isMutebooleanWhether Mute Notifications is enabled1.1.0
timezoneStringTime zone1.1.0
periodsList<TimePeriod>Mute Notifications time periods. If empty, Mute Notifications applies all day.1.1.0

Code Example

JIM.getInstance().getMessageManager().getMuteStatus(new IMessageManager.IGetMuteStatusCallback() {
@Override
public void onSuccess(boolean isMute, String timezone, List<TimePeriod> periods) {
}

@Override
public void onError(int errorCode) {
}
});