ChatThreadEventHandler class Null safety
The message thread event handler. which handle for message thread events such as creating or leaving a message thread.
Adds a message thread event handler:
ChatClient.getInstance.chatThreadManager.addEventHandler(UNIQUE_HANDLER_ID, ChatThreadEventHandler());
Remove a chat event handler:
ChatClient.getInstance.chatThreadManager.removeEventHandler(UNIQUE_HANDLER_ID);
Constructors
- ChatThreadEventHandler({void onChatThreadCreate(ChatThreadEvent event)?, void onChatThreadDestroy(ChatThreadEvent event)?, void onChatThreadUpdate(ChatThreadEvent event)?, void onUserKickOutOfChatThread(ChatThreadEvent event)?})
- The message thread listener callback
Properties
- hashCode → int
-
The hash code for this object.
read-onlyinherited
- onChatThreadCreate → (void Function(ChatThreadEvent event)?)
-
Occurs when a message thread is created.
final
- onChatThreadDestroy → (void Function(ChatThreadEvent event)?)
-
Occurs when a message thread is destroyed.
final
- onChatThreadUpdate → (void Function(ChatThreadEvent event)?)
-
Occurs when a message thread is updated.
final
- onUserKickOutOfChatThread → (void Function(ChatThreadEvent event)?)
-
Occurs when the current user is removed from the message thread by the group owner or a group admin to which the message thread belongs.
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