XCameraDescription class

Describes a camera device on the system. Returned by uxAvailableCameras; passed to XCameraController to bind a specific lens.

Constructors

XCameraDescription({required String id, required XCameraLens lens, required int sensorOrientation})
Binds a platform camera id to the lens it drives.
const

Properties

hashCode → int
The hash code for this object.
no setteroverride
id → String
Opaque platform handle — AVCaptureDevice.uniqueID on iOS, CameraX camera id on Android. Treat as a blob; only the plugin interprets it.
final
lens → XCameraLens
Side of the device this camera faces.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
sensorOrientation → int
Clockwise rotation in degrees (0/90/180/270) from the camera sensor's natural orientation to the device's portrait-up orientation. Used by post-capture transforms outside this module (e.g. normalizeCameraCapture).
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
override