addEventHandler method
- String identifier,
- 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.
Implementation
void addEventHandler(
String identifier,
ChatGroupEventHandler handler,
) {
_eventHandlesMap[identifier] = handler;
}