previewRotationQuarterTurns property
Number of 90° clockwise rotations the preview Texture needs so
the sensor frames display upright. On iOS the data output
pre-rotates via AVCaptureConnection.videoOrientation and this
is always 0. On Android CameraX delivers sensor-native frames to
the Surface and the consumer rotates — typically 1 for
sensorOrientation: 90 back cams and 3 for sensorOrientation: 270 front cams. Applied inside XCameraPreview; consumers
don't read this directly.
Implementation
final int previewRotationQuarterTurns;