CameraDevice class

A camera the host exposes.

Descriptor only: holds no native resources. Open it with CameraControl.open to capture frames.

Constructors

CameraDevice({required String id, required String name, CameraFacing facing = CameraFacing.external, List<CameraFormat> formats = const []})
Creates a device descriptor.
const

Properties

facing CameraFacing
Which way the camera points, if known.
final
formats List<CameraFormat>
Capture formats the device advertises.
final
hashCode int
The hash code for this object.
no setterinherited
id String
Stable, platform-specific identifier.
final
name String
Human-readable name (e.g. "FaceTime HD Camera").
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

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