ChatMultiDeviceEventHandler constructor

ChatMultiDeviceEventHandler(
  1. {void onContactEvent(
    1. ChatMultiDevicesEvent event,
    2. String userId,
    3. String? ext
    )?,
  2. void onGroupEvent(
    1. ChatMultiDevicesEvent event,
    2. String groupId,
    3. List<String>? userIds
    )?,
  3. void onChatThreadEvent(
    1. ChatMultiDevicesEvent event,
    2. String chatThreadId,
    3. List<String> userIds
    )?,
  4. void onRemoteMessagesRemoved(
    1. String conversationId,
    2. String deviceId
    )?,
  5. void onConversationEvent(
    1. ChatMultiDevicesEvent event,
    2. String conversationId,
    3. ChatConversationType type
    )?}
)

The multi-device event handler.

Param onContactEvent The multi-device event of contact.

Param onGroupEvent The multi-device event of group.

Param onChatThreadEvent The multi-device event of thread.

Param onRemoteMessagesRemoved The multi-device event of historical messages removed from the server.

Param onConversationEvent The multi-device event callback for the operation of a conversation.

Implementation

ChatMultiDeviceEventHandler({
  this.onContactEvent,
  this.onGroupEvent,
  this.onChatThreadEvent,
  this.onRemoteMessagesRemoved,
  this.onConversationEvent,
});