lockCaptureOrientation method

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

Pin the preview's connection orientation. Used today only to lock the preview to portrait so it never appears stretched/rotated.

Implementation

@override
Future<void> lockCaptureOrientation(
  int handle,
  DeviceOrientation orientation,
) async {
  lockCaptureOrientationCalls.add((handle: handle, orientation: orientation));
}