ChatMultiDeviceEventHandler class Null safety
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:
ChatClient.getInstance.addMultiDeviceEventHandler((UNIQUE_HANDLER_ID, ChatMultiDeviceEventHandler());
Remove a multi-device event handler:
ChatClient.getInstance.removeMultiDeviceEventHandler(UNIQUE_HANDLER_ID);
Constructors
-
ChatMultiDeviceEventHandler({void onContactEvent(ChatMultiDevicesEvent event, String userId, String? ext)?, void onGroupEvent(ChatMultiDevicesEvent event, String groupId, List<
String> ? userIds)?, void onChatThreadEvent(ChatMultiDevicesEvent event, String chatThreadId, List<String> userIds)?}) - The multi-device event handler.
Properties
- hashCode → int
-
The hash code for this object.
read-onlyinherited
-
onChatThreadEvent
→ (void Function(ChatMultiDevicesEvent event, String chatThreadId, List<
String> userIds)?) -
The multi-device event of thread.
final
- onContactEvent → (void Function(ChatMultiDevicesEvent event, String userId, String? ext)?)
-
The multi-device event of contact.
final
-
onGroupEvent
→ (void Function(ChatMultiDevicesEvent event, String groupId, List<
String> ? userIds)?) -
The multi-device event of group.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
read-onlyinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited