addMultiDeviceEventHandler method
- String identifier,
- ChatMultiDeviceEventHandler 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 ChatMultiDeviceEventHandler.
~end
~chinese 添加多设备事件监听。
Param identifier
多设备事件监听对应 ID。
Param handler
多设备事件监听。 请见 ChatMultiDeviceEventHandler。
~end
Implementation
void addMultiDeviceEventHandler(
String identifier,
ChatMultiDeviceEventHandler handler,
) {
_multiDeviceEventHandler[identifier] = handler;
}