android_hardware library Null safety

Classes

Camera
The Camera class is used to set image capture settings, start/stop preview, snap pictures, and retrieve frames for encoding for video.
CameraArea
Used for choosing specific metering and focus areas for the camera to use when calculating auto-exposure, auto-white balance, and auto-focus.
CameraInfo
Information about a camera.
CameraParameters
Camera service settings.
CameraRect
Holds four integer coordinates for a rectangle.
CameraSize
Image size (width and height dimensions).
ImageFormat
Image format constants.
PictureCallback
Callback used to supply image data from a photo capture.
PreviewCallback
Callback used to deliver copies of preview frames as they are displayed.

Typedefs

AutoFocusCallback = void Function(bool success)
Callback used to notify on completion of camera auto focus.
@Reference('android_hardware/camera/AutoFocusCallback')
AutoFocusMoveCallback = void Function(bool start)
Callback used to notify on auto focus start and stop.
@Reference('android_hardware/camera/AutoFocusMoveCallback')
DataCallback = void Function(Uint8List? data)
Callback when receiving an image or preview byte array.
@Reference('android_hardware/camera/DataCallback')
ErrorCallback = void Function(int error)
Callback for camera error notification.
@Reference('android_hardware/camera/ErrorCallback')
OnZoomChangeListener = void Function(int zoomValue, bool stopped)
Callback for zoom changes during a smooth zoom operation.
@Reference('android_hardware/camera/OnZoomChangeListener')
ShutterCallback = void Function()
Callback used to signal the moment of actual image capture.
@Reference('android_hardware/camera/ShutterCallback')