addMultiDeviceEventHandler method

void addMultiDeviceEventHandler(
  1. String identifier,
  2. ChatMultiDeviceEventHandler handler

Adds the multi-device event handler. After calling this method, you can handle for new multi-device events when they arrive.

Param identifier The custom handler identifier, which is used to find the corresponding handler.

Param handler The handler multi-device event. See ChatMultiDeviceEventHandler.


void addMultiDeviceEventHandler(
  String identifier,
  ChatMultiDeviceEventHandler handler,
) {
  _multiDeviceEventHandler[identifier] = handler;