CameraInfo class Null safety

Information about a camera.

Retrieve by calling Camera.getAllCameraInfo.

Annotations
  • @Reference('android_hardware/camera/CameraInfo')

Constructors

CameraInfo({required int cameraId, required int facing, required int orientation, required bool? canDisableShutterSound})
Default constructor for CameraInfo.

Properties

cameraId int
The identifier for this camera device.
final
canDisableShutterSound bool?
Whether the shutter sound can be disabled.
final
facing int
The direction that the camera faces.
final
hashCode int
The hash code for this object.
read-onlyinherited
orientation int
The orientation of the camera image.
final
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited

Methods

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

Operators

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

Constants

cameraFacingBack → const int
The facing of the camera is opposite to that of the screen.
0
cameraFacingFront → const int
The facing of the camera is the same as that of the screen.
1