FlutterLiteCamera class

Constructors

FlutterLiteCamera()

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

buildPreview(int textureId) → Widget
Builds the widget that displays the preview for textureId.
captureFrame({int byteOrder = 2}) → Future<Map<String, dynamic>>
byteOrder selects the output channel arrangement of the RGB888 buffer on Android: 0=RGB, 1=RBG, 2=GRB, 3=GBR, 4=BRG, 5=BGR. The default (GRB) is verified against on-device colors; other devices can pass a different order if their HAL lays the chroma out differently.
getDeviceList() → Future<List<String>>
getHeight() → Future<int>
The actual capture height negotiated with the device, in pixels (0 when no camera is open).
getRotation() → Future<int>
Returns the clockwise rotation in degrees (0, 90, 180, 270) to apply to the preview and decoded coordinates so they display upright.
getWidth() → Future<int>
The actual capture width negotiated with the device, in pixels (0 when no camera is open).
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
open(int index) → Future<bool>
release() → Future<void>
setResolution(int width, int height) → Future<bool>
Sets the capture resolution in pixels.
setResolutionPreset(ResolutionPreset preset) → Future<bool>
Convenience for setResolution using a ResolutionPreset target.
startPreview() → Future<int>
Starts the native preview stream and returns a texture id that can be shown with buildPreview. Call open before this.
stopPreview() → Future<void>
Stops the preview stream started with startPreview.
toString() → String
A string representation of this object.
inherited

Operators

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