addMultiDeviceEventHandler method

void addMultiDeviceEventHandler(
  1. String identifier,
  2. EMMultiDeviceEventHandler handler
)

~english 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 EMMultiDeviceEventHandler. ~end

~chinese 添加多设备事件监听。

Param identifier 多设备事件监听对应 ID。

Param handler 多设备事件监听。 请见 EMMultiDeviceEventHandler。 ~end

Implementation

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