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