lockCaptureOrientation abstract method

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

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

Implementation

Future<void> lockCaptureOrientation(
  int handle,
  DeviceOrientation orientation,
);