ChatMultiDeviceListener class Null safety

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

Registers a multi-device event listener:

  ChatClient.getInstance.addMultiDeviceListener(mMultiDeviceListener);

Removes a multi-device event listener:

  ChatClient.getInstance.removeMultiDeviceListener(mMultiDeviceListener);
Annotations
  • @Deprecated("Use ChatMultiDeviceEventHandler to instead")

Constructors

ChatMultiDeviceListener()

Properties

hashCode int
The hash code for this object.
read-onlyinherited
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
onChatThreadEvent(ChatMultiDevicesEvent event, String chatThreadId, List<String> usernames) → void
The multi-device event callback of thread.
onContactEvent(ChatMultiDevicesEvent event, String username, String? ext) → void
The multi-device event callback of contact.
onGroupEvent(ChatMultiDevicesEvent event, String groupId, List<String>? usernames) → void
The multi-device event callback of group.
toString() String
A string representation of this object.
inherited

Operators

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