openDevice method

  1. @override
Future<int?> openDevice(
  1. int clientHandle,
  2. String guid
)
override

Piggyback Capture's openDevice and use parameters and interfaces unique to iOS connections

Implementation

@override

/// Piggyback Capture's openDevice and use parameters and interfaces unique to iOS connections
Future<int?> openDevice(int clientHandle, String guid) async {
  final IosTransportHandle transportHandle = IosTransportHandle();
  transportHandle.value = clientHandle;
  try {
    final IosTransportHandle handle =
        await transport!.openDevice(transportHandle, guid);
    return handle.value;
  } on PlatformException catch (ex) {
    throw exceptionHelper('openDevice', 1, ex);
  } catch (ex) {
    throw exceptionHelper('openDevice', 0, ex);
  }
}