CameraController class

Implementation of intf.CameraController using iOS AVFoundation API.

Implemented types

Constructors

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

Properties

captureDeviceInput CaptureDeviceInput
Provides media from a capture device to a capture session.
final
capturePreset String?
The CaptureSessionPreset with CaptureSession used when a CameraControllerPreset is set.
getter/setter pair
device CameraDevice
The camera device controlled by this controller.
final
disposed bool
Whether dispose has been called.
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
outputs List<CameraOutput>
The ouptuts frame data is streamed to from device.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
session CaptureSession
Manages capture activity and coordinates the flow of data from input devices to capture outputs.
final

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 nonexistent 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