EMChatThreadEventHandler constructor

EMChatThreadEventHandler(
  1. {void onChatThreadCreate(
    1. EMChatThreadEvent event
    )?,
  2. void onChatThreadDestroy(
    1. EMChatThreadEvent event
    )?,
  3. void onChatThreadUpdate(
    1. EMChatThreadEvent event
    )?,
  4. void onUserKickOutOfChatThread(
    1. EMChatThreadEvent event
    )?}
)

Thread 事件监听。

Param onChatThreadCreate 子区创建回调。

Param onChatThreadDestroy 子区解散事件, 子区所属群组的所有成员均可调用该方法。

Param onChatThreadUpdate 子区更新回调, 子区所属群组的所有成员均可调用该方法。

Param onUserKickOutOfChatThread 管理员移除子区用户的回调。

Implementation

EMChatThreadEventHandler({
  this.onChatThreadCreate,
  this.onChatThreadDestroy,
  this.onChatThreadUpdate,
  this.onUserKickOutOfChatThread,
});