BarcodeScannerController class

Controller for control camera and detection. Return by widget BarcodeScanner when scanner is initialized.

Detection will start only after call method startScan. After call cancelScan or no call of startScan there is no detection, which saves resources of the device. cancelScan doens't stop the cameraPreview - only detection, to stop a camera use method pauseCamera.

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

cancelScan() Future<void>
Stop recognition of objects.
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.
setDelay(int delay) Future<void>
Set delay between detections when scanning is active.
setIosCamera({required IosCameraPosition position, required IosCameraType type}) Future<void>
Sets iOS camera with position and type.
setZoom(double value) Future<void>
Sets the camera zoom.
startScan(int delay) Future<void>
Start recognition objects of type RecognitionType
toggleFlash() Future<void>
Toggle flash of the device.
toString() String
A string representation of this object.
inherited

Operators

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