CameraCapability class

A native Android Camera2 capability reported by the device.

Constructors

CameraCapability({required String cameraId, required String lensFacing, required String hardwareLevel, required bool hasFlash, required int sensorOrientation, required bool supportsRawCapture, required bool supportsManualSensor, required bool supportsManualPostProcessing, required bool supportsAutoFocus, required bool supportsOpticalStabilization, required List<String> supportedFpsRanges})
Creates a Camera2 capability description.
const
CameraCapability.fromMap(Map<Object?, Object?> map)
Creates a CameraCapability from a map returned by the native platform.
factory

Properties

cameraId String
The Android camera identifier.
final
hardwareLevel String
Readable Camera2 hardware support level.
final
hasFlash bool
Whether this camera reports flash support.
final
hashCode int
The hash code for this object.
no setterinherited
lensFacing String
Readable lens direction, such as Front, Back, or External.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sensorOrientation int
Sensor orientation in degrees.
final
supportedFpsRanges List<String>
Readable target frames-per-second ranges supported by this camera.
final
supportsAutoFocus bool
Whether this camera reports autofocus modes beyond fixed focus.
final
supportsManualPostProcessing bool
Whether this camera supports manual post-processing controls.
final
supportsManualSensor bool
Whether this camera supports manual sensor controls.
final
supportsOpticalStabilization bool
Whether this camera reports optical image stabilization support.
final
supportsRawCapture bool
Whether this camera supports RAW capture.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() Map<String, Object>
Converts this camera capability to a map using the native field names.
toString() String
Returns a readable string containing all camera fields.
override

Operators

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