setSilentModeForAll method
- required ChatSilentModeParam param,
Sets the offline push settings at the app level for the current login user.
Param param The offline push parameters.
Throws A description of the exception. See ChatError.
Implementation
Future<void> setSilentModeForAll({
required ChatSilentModeParam param,
}) async {
try {
Map req = {};
req["param"] = param.toJson();
Map result = await platform_interface.Client.instance.pushManager.callNativeMethod(
ChatMethodKeys.setSilentModeForAll,
req,
);
ChatError.hasErrorFromResult(result);
} catch (e) {
rethrow;
}
}