XCameraCreateResult class

The tuple returned by XCameraBackend.create — everything the controller needs to start serving the preview widget and routing subsequent calls.

Constructors

XCameraCreateResult({required int handle, required int textureId, required Size previewSize, int previewRotationQuarterTurns = 0})
Binds the native session handle to the preview it serves.
const

Properties

handle → int
Identifies the native session in every subsequent call.
final
hashCode → int
The hash code for this object.
no setterinherited
previewRotationQuarterTurns → int
Number of 90° CW rotations the Texture widget needs. iOS: 0. Android: derived from the selected camera's sensor orientation.
final
previewSize → Size
Initial preview size; may be Size.zero when the native side can't determine it synchronously (Android CameraX needs the first SurfaceRequest to fire before it knows). In that case a XCameraPreviewSizeChanged event follows.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
textureId → int
Texture the preview widget renders.
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.
inherited