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