MlKitChannel class
Platform channel of the MLkit plugin
Constructors
- MlKitChannel()
-
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
torchToggleStream
→ Stream<
bool> -
Stream inform when torch change state.
no setter
Methods
-
cancelScan(
) → Future< void> - Stop recognition of the objects.
-
dispose(
) → Future< void> - Release resources of the camera.
-
getIosAvailableCameras(
) → Future< List< IosCamera> > - Gets all available iOS cameras.
-
initCameraPreview(
{ScannerParameters? initialArguments}) → Future< void> - Initialize camera preview.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
pauseCamera(
) → Future< void> - Pause camera, also pause detection if scanning is active.
-
resumeCamera(
) → Future< void> - Resume camera, also start detection if method startScan was called before pause.
-
setCropArea(
CropRect rect) → Future< void> - Adds overlay to the CameraPreview and sets area for recognition
-
setIosCamera(
{required IosCameraPosition position, required IosCameraType type}) → Future< void> -
Sets iOS camera with
position
andtype
. -
setScanDelay(
int delay) → Future< void> - Set delay between detections when scanning is active.
-
setZoom(
double value) → Future< void> - Sets the camera zoom.
-
startScan(
RecognitionType type, int delay) → Future< Stream< Barcode> > - Start recognition objects of type RecognitionType
-
toggleFlash(
) → Future< void> - Toggle flash of the device.
-
toString(
) → String -
A string representation of this object.
inherited
-
updateConstraints(
double width, double height) → Future< void> - Update frame constraints for native platform view.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited