updateUserOfflinePushRule abstract method

Future<ZIMUserOfflinePushRuleUpdatedResult> updateUserOfflinePushRule(
  1. ZIMUserOfflinePushRule offlinePushRule
)

Available since: 2.15.0 and later versions.

Description: This interface is used to modify the custom rule of offline push for the current user.

Use cases: For example, in the multi-terminal login scenario, the developer hopes that when the desktop is online, the mobile terminal does not want to receive offline push. In this scenario, the interface can be invoked to achieve this function.

When to call /Trigger: You can call it after you log in and the network is in good condition.

Caution:After the interface is successfully invoked, all ends will receive onUserRuleUpdate notifying the user that the rule has been updated.

Related callbacks: ZIMEventHandler.onUserRuleUpdatedZIMUserOfflinePushRuleUpdatedResult

Related APIs: querySelfUserInfo

Implementation

Future<ZIMUserOfflinePushRuleUpdatedResult> updateUserOfflinePushRule(ZIMUserOfflinePushRule offlinePushRule);