setEventCallback method

Future<int> setEventCallback (
  1. NERtcDeviceEventCallback callback
)

设置设备事件回调

Implementation

Future<int> setEventCallback(NERtcDeviceEventCallback callback) async {
  assert(callback != null);
  _handler.setCallback(callback);
  IntValue reply = await _api.setDeviceEventCallback();
  return reply.value;
}