CameraConfigProxy class final
Zero-copy proxy for CameraConfig.
Extends CameraConfig and overrides every getter to read lazily from
native memory — no field is copied at construction time.
Because CameraConfigProxy <: CameraConfig, a Stream<CameraConfigProxy>
satisfies Stream<CameraConfig> via Dart covariant generics.
Native memory is freed via a NativeFinalizer backed by the
generated C symbol 'nitro_camera_release_CameraConfig'.
Ownership: this proxy owns the generated struct shell. Zero-copy
field buffers remain owned by the native implementation and must
stay valid until this proxy is released by the finalizer or
toDartAndRelease.
- Inheritance
-
- Object
- CameraConfig
- CameraConfigProxy
- Implemented types
- Available extensions
Constructors
-
CameraConfigProxy(Pointer<
CameraConfigFfi> _native) -
Takes ownership of native. Super fields are zeroed and never read;
all getters below are overridden to read from native memory instead.
Do NOT call
malloc.freeon the struct shell after passing it here, and do not free zero-copy field buffers while the proxy may be read.
Properties
- active → int
-
no setteroverride
- autoFocus → int
-
no setteroverride
- enableFrameProcessing → int
-
no setteroverride
- exposure → double
-
no setteroverride
- flash → int
-
no setteroverride
- hashCode → int
-
The hash code for this object.
no setterinherited
- lowLightBoost → int
-
no setteroverride
- pixelFormat → int
-
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- samplingRate → int
-
no setteroverride
- torch → int
-
no setteroverride
- torchLevel → double
-
no setteroverride
- videoHdr → int
-
no setteroverride
- videoStabilization → int
-
no setteroverride
- whiteBalanceKelvin → int
-
no setteroverride
- zoom → double
-
no setteroverride
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toDartAndRelease(
) → CameraConfig - Eagerly copies all fields to a plain CameraConfig value, detaches the finalizer, and frees native memory immediately. Use this only when you need an immutable snapshot; for streams prefer consuming the proxy fields lazily then letting it GC. Must not be called more than once.
-
toNative(
Arena arena) → Pointer< CameraConfigFfi> -
Available on CameraConfig, provided by the CameraConfigExt extension
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited