CameraConfig class

A bundle of live camera settings applied atomically to an already-open session via NitroCamera.configure. This is the FFI struct behind the declarative CameraConfiguration Dart API: numeric/boolean only, so it crosses the boundary by value at zero serialization cost. Device / format / fps / audio changes still go through NitroCamera.openCamera (a reopen).

Implementers
Available extensions
Annotations
  • @HybridStruct.new()

Constructors

CameraConfig({required double zoom, required double exposure, required int flash, required int torch, required double torchLevel, required int whiteBalanceKelvin, required int videoHdr, required int lowLightBoost, required int autoFocus, required int videoStabilization, required int active, required int enableFrameProcessing, required int pixelFormat, required int samplingRate})
const

Properties

active int
final
autoFocus int
final
enableFrameProcessing int
final
exposure double
final
flash int
final
hashCode int
The hash code for this object.
no setterinherited
lowLightBoost int
final
pixelFormat int
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
samplingRate int
final
torch int
final
torchLevel double
final
videoHdr int
final
videoStabilization int
final
whiteBalanceKelvin int
final
zoom double
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
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