addEventHandler method
- String identifier,
- ChatThreadEventHandler handler
Adds the chat thread event handler. After calling this method, you can handle for chat thread event when they arrive.
Param identifier
The custom handler identifier, is used to find the corresponding handler.
Param handler
The handle for chat thread event. See ChatThreadEventHandler.
Implementation
void addEventHandler(
String identifier,
ChatThreadEventHandler handler,
) {
_eventHandlesMap[identifier] = handler;
}