Camera class

The Camera class used to set image capture settings, start/stop preview, snap pictures, and retrieve frames for encoding for video.

This class is a client for the Camera service, which manages the actual camera hardware.

This exposes the deprecated Android Camera API. This should only be used with Android sdk versions less than 21.

Mixed in types

Properties

handle int
Identifier for an object on the native side of the plugin. [...]
final, inherited
hashCode int
The hash code for this object. [...]
read-only, inherited
previewTexture NativeTexture
Sets the NativeTexture to be used for live preview. [...]
write-only
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
release() Future<void>
Disconnects and releases the Camera object resources. [...]
startPreview() Future<void>
Starts capturing and drawing preview frames to the screen. [...]
stopPreview() Future<void>
Stops capturing and drawing preview frames to the previewTexture, and resets the camera for a future call to startPreview.
toString() String
Returns a string representation of this object.
inherited

Operators

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

Static Methods

getCameraInfo(int cameraId) Future<CameraInfo>
Retrieves information about a particular camera. [...]
getNumberOfCameras() Future<int>
Retrieves the number of physical cameras available on this device.
open(int cameraId) Camera
Creates a new Camera object to access a particular hardware camera. [...]