setSilentModeForAll method

Future<void> setSilentModeForAll(
  1. {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 {
  Map req = {};
  req["param"] = param.toJson();
  Map result = await PushChannel.invokeMethod(
    ChatMethodKeys.setSilentModeForAll,
    req,
  );
  try {
    ChatError.hasErrorFromResult(result);
  } on ChatError catch (e) {
    throw e;
  }
}