ChatThreadEventHandler class
~english The message thread event handler, which handles 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());
Removes a chat event handler:
ChatClient.getInstance.chatThreadManager.removeEventHandler(UNIQUE_HANDLER_ID);
~end
~chinese Thread 事件监听
添加监听:
ChatClient.getInstance.chatThreadManager.addEventHandler(UNIQUE_HANDLER_ID, ChatThreadEventHandler());
移除监听:
ChatClient.getInstance.chatThreadManager.removeEventHandler(UNIQUE_HANDLER_ID);
~end
Constructors
- ChatThreadEventHandler({void onChatThreadCreate(ChatThreadEvent event)?, void onChatThreadDestroy(ChatThreadEvent event)?, void onChatThreadUpdate(ChatThreadEvent event)?, void onUserKickOutOfChatThread(ChatThreadEvent event)?})
- ~english The message thread listener callback.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- onChatThreadCreate → (void Function(ChatThreadEvent event)?)
-
~english
Occurs when a message thread is created.
final
- onChatThreadDestroy → (void Function(ChatThreadEvent event)?)
-
~english
Occurs when a message thread is destroyed.
final
- onChatThreadUpdate → (void Function(ChatThreadEvent event)?)
-
~english
Occurs when a message thread is updated.
final
- onUserKickOutOfChatThread → (void Function(ChatThreadEvent event)?)
-
~english
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.
~end
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