setProperty method
Piggyback Capture's setProperty and use parameters and interfaces unique to iOS connections
Implementation
@override
/// Piggyback Capture's setProperty and use parameters and interfaces unique to iOS connections
Future<CaptureProperty> setProperty(
int? clientOrDeviceHandle, CaptureProperty property) async {
final IosTransportHandle transportHandle = IosTransportHandle();
final Property transportProperty = propertyFromCaptureProperty(property);
transportHandle.value = clientOrDeviceHandle ?? 0;
try {
final Property response =
await transport!.setProperty(transportHandle, transportProperty);
final CaptureProperty captureProperty =
capturePropertyFromProperty(response);
return captureProperty;
} on PlatformException catch (ex) {
throw exceptionHelper('setProperty', 1, ex);
} catch (ex) {
throw exceptionHelper('setProperty', 0, ex);
}
}