FastBarcodeScannerPlatform class abstract

The interface that implementations of fast_barcode_scanner must implement.

Platform implementations should extend this class rather than implement it as fast_barcode_scanner does not consider newly added methods to be breaking changes. Extending this class (using extends) ensures that the subclass will get the default implementation, while platform implementations that implements this interface will be broken by newly added FastBarcodeScannerPlatform methods.

Inheritance
  • Object
  • PlatformInterface
  • FastBarcodeScannerPlatform

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

changeCamera(CameraPosition position) Future<bool>
dispose() Future<void>
Stops and clears the camera ressources.
init(List<BarcodeType> types, Resolution resolution, Framerate framerate, DetectionMode detectionMode, CameraPosition position) Future<PreviewConfiguration>
Returns a PreviewConfiguration containing the parameters with which the camera is set up.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
pause() Future<void>
Pauses the camera on the platform.
resume() Future<void>
Resumes the camera from the paused state on the platform.
setOnDetectHandler(void handler(Barcode)) → void
Set the method to be called when a barcode is detected
toggleTorch() Future<bool>
Toggles the torch, if available.
toString() String
A string representation of this object.
inherited

Operators

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

Static Properties

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