fetchSilentModeForConversations method

Future<Map<String, ChatSilentModeResult>> fetchSilentModeForConversations(
  1. List<EMConversation> conversations
)

~english Gets the offline push settings of specified conversations.

Param conversations The conversation list.

Return The key is the conversation ID and the value is offline push settings.

Throws A description of the exception. See EMError. ~end

~chinese 批量获取指定会话的推送通知设置。

Param conversations 会话列表。

Return 键为会话 ID,值为离线推送设置。

Throws 如果有异常会在此抛出,包括错误码和错误信息,详见 EMError。 ~end

Implementation

Future<Map<String, ChatSilentModeResult>> fetchSilentModeForConversations(
  List<EMConversation> conversations,
) async {
  return Client.instance.pushManager
      .fetchSilentModeForConversations(conversations);
}