startSocketCamExtension static method

Future startSocketCamExtension(
  1. int? clientHandle,
  2. Function callback
)

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;
}