addEventHandler method

void addEventHandler(
  1. String identifier,
  2. EMChatEventHandler handler
)

添加事件监听。

Param identifier 事件监听对应的 ID。

Param handler 事件监听. 请见 EMChatEventHandler.

Implementation

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