MethodChannelFlutterLiteCamera class

An implementation of FlutterLiteCameraPlatform that uses method channels.

Inheritance

Properties

hashCode → int
The hash code for this object.
no setterinherited
methodChannel → MethodChannel
The method channel used to interact with the native platform.
final
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.
inherited
captureFrame({int byteOrder = 2}) → Future<Map<String, dynamic>>
Captures a frame from the camera.
override
getDeviceList() → Future<List<String>>
Lists the available video capture devices.
override
getHeight() → Future<int>
Returns the actual capture height negotiated with the device.
override
getRotation() → Future<int>
Returns the clockwise preview rotation in degrees. Desktop and web platforms that do not implement the native method return 0.
override
getWidth() → Future<int>
Returns the actual capture width negotiated with the device.
override
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.
override
release() → Future<void>
Releases the camera resources.
override
setResolution(int width, int height) → Future<bool>
Sets the capture resolution in pixels; the platform negotiates the closest supported size with the device.
override
setResolutionPreset(ResolutionPreset preset) → Future<bool>
Convenience for setResolution using a ResolutionPreset target.
inherited
startPreview() → Future<int>
Starts the native preview stream.
override
stopPreview() → Future<void>
Stops the native preview stream and unregisters the texture.
override
toString() → String
A string representation of this object.
inherited

Operators

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