CameraApi class

Simple Camera namespace.

await HardwarePlugin.camera.start();
HardwarePlugin.camera.frameStream.listen((frame) {
  final bytes = frame.bytes; // Uint8List, raw pixels
});

Properties

frameStream Stream<CameraFrame>
High-performance stream of CameraFrames via binary channel (no JSON).
no setter
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
start() Future<void>
Start camera frame streaming.
stop() Future<void>
Stop camera and release resources.
toString() String
A string representation of this object.
inherited

Operators

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