fetchSilentModeForAll method
获取当前登录用户的 app 级别的推送通知设置。
Return 推送通知设置。
Throws 如果有异常会在此抛出,包括错误码和错误信息,详见 ChatError。
Implementation
Future<ChatSilentModeResult> fetchSilentModeForAll() async {
try {
Map result = await platform_interface.Client.instance.pushManager
.callNativeMethod(ChatMethodKeys.fetchSilentModeForAll);
ChatError.hasErrorFromResult(result);
return ChatSilentModeResult.fromJson(
result[ChatMethodKeys.fetchSilentModeForAll],
);
} catch (e) {
rethrow;
}
}