CameraController class Null safety

Implementation of intf.CameraController using Android Camera1 API.

Constructors

CameraController({required CameraDevice device, required List<CameraOutput> outputs})
Construct a CameraController.

Properties

camera Camera
The camera controlled by this controller.
latefinal
cameraParameters CameraParameters
The parameters used to configure this device.
latefinal
device CameraDevice
The camera device controlled by this controller.
final
disposed bool
Whether dispose has been called.
read-onlyinherited
hashCode int
The hash code for this object.
read-onlyinherited
outputs List<CameraOutput>
The ouptuts frame data is streamed to from device.
final
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited

Methods

dispose() Future<void>
Release all resources held by device and detach all outputs.
initialize() Future<void>
Initializes this controller and attaches the outputs.
maxZoom() Future<double>
The maximum zoom value of a device.
override
minZoom() Future<double>
The minimum zoom value of a device.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
setControllerPreset(CameraControllerPreset preset) Future<void>
Set a preset configuration for a CameraController.
override
setExposureMode(ExposureMode mode) Future<void>
Set the exposure mode for a device.
override
setFocusMode(FocusMode mode) Future<void>
Set the focus mode of the device.
override
setTorchMode(TorchMode mode) Future<void>
Set the torch mode for a device.
override
setZoom(double value) Future<void>
Set a zoom value for a device.
override
smoothZoomSupported() Future<bool>
Whether a device can start a smooth zoom.
override
smoothZoomTo(double value) Future<void>
Smoothly transition the zoom value for a device.
override
start() Future<void>
Start the flow of data from device to outputs.
override
stop() Future<void>
Stop the flow of data from device to outputs.
override
supportedExposureModes() Future<List<ExposureMode>>
Retrieve all supported exposure modes for a device.
override
supportedFocusModes() Future<List<FocusMode>>
Retrieve all supported focus modes for a device.
override
supportedTorchModes() Future<List<TorchMode>>
Retrieve all supported torch modes for a device.
override
toString() String
A string representation of this object.
inherited
verifyInitialized() → void
Throws an AssertionError if this controller has not been initialized.
inherited
verifyNotDisposed() → void
Throws an AssertionError if this controller has already been disposed.
inherited
zoomSupported() Future<bool>
Whether a zoom value can be set.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited