onConversationSyncStateChanged property

void Function(ZIM zim, ZIMConversationSyncState state)? onConversationSyncStateChanged
getter/setter pair

Notification of synchronization status change events between the conversation list and the server

Available since: 2.21.0 and above. Description: After the SDK first logs in and starts the process of syncing conversations from the server, this callback is triggered to return notifications of conversation updates when the process completes or fails. Triggered when: This callback is triggered when the SDK performs the sync conversation list operation after the first login or after reconnecting from a network disconnect. Caution: Even if the conversation list does not need to be synced, the SDK will still trigger the sync completion callback so that developers can display or dismiss UI loading indicators.

  • zim ZIM instance.
  • state Sync status

Implementation

static void Function(ZIM zim, ZIMConversationSyncState state)?
onConversationSyncStateChanged;