addEventHandler method

void addEventHandler(
  1. String identifier,
  2. ChatGroupEventHandler handler

Adds the group event handler. After calling this method, you can handle for new group event when they arrive.

Param identifier The custom handler identifier, is used to find the corresponding handler.

Param handler The handle for group event. See ChatGroupEventHandler.


void addEventHandler(
  String identifier,
  ChatGroupEventHandler handler,
) {
  _eventHandlesMap[identifier] = handler;