FlutterLiteCameraPlatform class abstract

Inheritance
  • Object
  • PlatformInterface
  • FlutterLiteCameraPlatform
Implementers

Constructors

FlutterLiteCameraPlatform()
Constructs a FlutterLiteCameraPlatform.

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 renders the preview started with startPreview.
captureFrame({int byteOrder = 2}) Future<Map<String, dynamic>>
Captures a single RGB frame from the camera.
getDeviceList() Future<List<String>>
Lists available video capture devices.
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, or 270) that must be applied to the camera preview and any coordinates derived from captureFrame so they appear upright for the current device orientation.
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>
Opens the camera with the specified index.
release() Future<void>
Releases the camera and associated resources.
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.
stopPreview() Future<void>
Stops the preview stream and unregisters the texture.
toString() String
A string representation of this object.
inherited

Operators

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

Static Properties

instance FlutterLiteCameraPlatform
The default instance of FlutterLiteCameraPlatform to use.
getter/setter pair