lockCaptureOrientation method

  1. @override
Future<void> lockCaptureOrientation(
  1. int cameraId,
  2. DeviceOrientation orientation
)

Locks the capture orientation.

Implementation

@override
Future<void> lockCaptureOrientation(
  int cameraId,
  DeviceOrientation orientation,
) async {
  await _channel.invokeMethod<String>(
    'lockCaptureOrientation',
    <String, dynamic>{
      'cameraId': cameraId,
      'orientation': serializeDeviceOrientation(orientation)
    },
  );
}