setEventCallback method Null safety
- NERtcDeviceEventCallback callback
Set the callback for the device event
Implementation
Future<int> setEventCallback(NERtcDeviceEventCallback callback) async {
_handler.setCallback(callback);
IntValue reply = await _api.setDeviceEventCallback();
return reply.value ?? -1;
}