EMMultiDeviceEventHandler class

The multi-device event handler. Listens for callback for the current user's actions on other devices, including contact changes and group changes.

Adds multi-device event handler:

  EMClient.getInstance.addMultiDeviceEventHandler((UNIQUE_HANDLER_ID, EMMultiDeviceEventHandler());

Remove a multi-device event handler:

  EMClient.getInstance.removeMultiDeviceEventHandler(UNIQUE_HANDLER_ID);

Constructors

EMMultiDeviceEventHandler({void onContactEvent(EMMultiDevicesEvent event, String userId, String? ext)?, void onGroupEvent(EMMultiDevicesEvent event, String groupId, List<String>? userIds)?, void onChatThreadEvent(EMMultiDevicesEvent event, String chatThreadId, List<String> userIds)?})
The multi-device event handler.

Properties

hashCode int
The hash code for this object.
no setterinherited
onChatThreadEvent → (void Function(EMMultiDevicesEvent event, String chatThreadId, List<String> userIds)?)
The multi-device event of thread.
final
onContactEvent → (void Function(EMMultiDevicesEvent event, String userId, String? ext)?)
The multi-device event of contact.
final
onGroupEvent → (void Function(EMMultiDevicesEvent event, String groupId, List<String>? userIds)?)
The multi-device event of group.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited