startSocketCamExtension static method
Implementation
static Future<dynamic> startSocketCamExtension(
int? clientHandle, Function callback) async {
try {
await platform.invokeMethod('startSocketCamExtension',
<String, int?>{'clientHandle': clientHandle});
} catch (e) {
throw e.toString();
}
_subscription =
eventChannel.receiveBroadcastStream().listen((dynamic event) {
callback(event);
});
return _subscription;
}