android_hardware library

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.
AutoFocusMoveCallback = void Function(bool start)
Callback used to notify on auto focus start and stop.
DataCallback = void Function(Uint8List? data)
Callback when receiving an image or preview byte array.
ErrorCallback = void Function(int error)
Callback for camera error notification.
OnZoomChangeListener = void Function(int zoomValue, bool stopped)
Callback for zoom changes during a smooth zoom operation.
ShutterCallback = void Function()
Callback used to signal the moment of actual image capture.