setConversationNotificationStatus abstract method

Future<ZIMConversationNotificationStatusSetResult> setConversationNotificationStatus(
  1. ZIMConversationNotificationStatus status,
  2. String conversationID,
  3. ZIMConversationType conversationType
)

Available since: 2.1.5 and above.

Description: This method enables DND by selecting whether the unread of the target session is updated when a message is received.

Use cases: If the user selects MESSAGE DO not Disturb (DND), the user can call the corresponding method.

Default value: Message DND is disabled by default.

When to call /Trigger: If the target session exists after login, invoke this interface if you want to enable the DND status of the target session.

Restrictions: Valid after login, invalid after logout.

Impacts on other APIs: After the DND state is enabled, receiving messages is not triggered ZIMEventHandler.onConversationTotalUnreadMessageCountUpdated.

Related callbacks: ZIMConversationNotificationStatusSetResult.

Related APIs: ZIMEventHandler.onConversationTotalUnreadMessageCountUpdated.

status the session notification state. conversationID conversationID. conversationType conversation type.

Implementation

Future<ZIMConversationNotificationStatusSetResult>
    setConversationNotificationStatus(
        ZIMConversationNotificationStatus status,
        String conversationID,
        ZIMConversationType conversationType);