EMChatThreadEventHandler class

Thread 事件监听

添加监听:

  EMClient.getInstance.chatThreadManager.addEventHandler(UNIQUE_HANDLER_ID, EMChatThreadEventHandler());

移除监听:

EMClient.getInstance.chatThreadManager.removeEventHandler(UNIQUE_HANDLER_ID);

Constructors

EMChatThreadEventHandler({void onChatThreadCreate(EMChatThreadEvent event)?, void onChatThreadDestroy(EMChatThreadEvent event)?, void onChatThreadUpdate(EMChatThreadEvent event)?, void onUserKickOutOfChatThread(EMChatThreadEvent event)?})
Thread 事件监听。

Properties

hashCode int
The hash code for this object.
read-onlyinherited
onChatThreadCreate → (void Function(EMChatThreadEvent event)?)
子区创建回调。
final
onChatThreadDestroy → (void Function(EMChatThreadEvent event)?)
子区解散事件。 子区所属群组的所有成员均可调用该方法。
final
onChatThreadUpdate → (void Function(EMChatThreadEvent event)?)
子区更新回调。 子区所属群组的所有成员均可调用该方法。
final
onUserKickOutOfChatThread → (void Function(EMChatThreadEvent event)?)
管理员移除子区用户的回调。
final
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited

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