ChatThreadEventHandler constructor

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

The message thread listener callback.

Param onChatThreadCreate A message thread is created. All members in the group to which the thread belongs receive this callback.

Param onChatThreadDestroy A message thread is destroyed. All members in the group to which the destroyed thread belongs receive this callback.

Param onChatThreadUpdate A message thread is updated. All members in the group to which the updated thread belongs receive this callback.

Param onUserKickOutOfChatThread The current user is removed from the message thread by the group owner or a group admin to which the message thread belongs. The current user removed from the thread receives the callback.

Implementation

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