addEventHandler method
- String identifier,
- ChatGroupEventHandler handler
~english 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.
~end
~chinese 添加群组事件监听。
Param identifier
自定义监听对应 ID,可用于查找或删除监听。
Param handler
群组事件监听,请见 ChatGroupEventHandler.
~end
Implementation
void addEventHandler(
String identifier,
ChatGroupEventHandler handler,
) {
_eventHandlesMap[identifier] = handler;
}