MobileScannerPlatform class abstract

The platform interface for the mobile_scanner plugin.

Inheritance
  • Object
  • PlatformInterface
  • MobileScannerPlatform

Constructors

MobileScannerPlatform()
Constructs a MobileScannerPlatform.

Properties

barcodesStream Stream<BarcodeCapture?>
Get the stream of barcode captures.
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
torchStateStream Stream<TorchState>
Get the stream of torch state changes.
no setter
zoomScaleStateStream Stream<double>
Get the stream of zoom scale changes.
no setter

Methods

analyzeImage(String path) Future<BarcodeCapture?>
Analyze a local image file for barcodes.
buildCameraView() Widget
Build the camera view for the barcode scanner.
dispose() Future<void>
Dispose of this MobileScannerPlatform instance.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
resetZoomScale() Future<void>
Reset the zoom scale, so that the camera is fully zoomed out.
setBarcodeLibraryScriptUrl(String scriptUrl) → void
Set the source url for the barcode library.
setZoomScale(double zoomScale) Future<void>
Set the zoom scale of the camera.
start(StartOptions startOptions) Future<MobileScannerViewAttributes>
Start the barcode scanner and prepare a scanner view.
stop() Future<void>
Stop the camera.
toggleTorch() Future<void>
Toggle the torch on the active camera on or off.
toString() String
A string representation of this object.
inherited
updateScanWindow(Rect? window) Future<void>
Update the scan window to the given window rectangle.

Operators

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

Static Properties

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