IndicatorOptions class

A class that manages various indicators for the scanner such as buzzer, vibrator, and battery charging indicator.

This class allows for enabling/disabling these indicators and configuring buzzer and vibrator options.

Annotations
  • @lazySingleton

Constructors

IndicatorOptions(AppLogger _appLogger)

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

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
sendCommand(String deviceId, String command, {List<String> parameters = const [], bool sendFeedback = true}) Future<CommandResponse>
inherited
setBuzzerDuration({required dynamic deviceId, required BuzzerDuration duration}) Future<CommandResponse>
Sets the buzzer duration on the scanner.
setBuzzerType({required dynamic deviceId, required BuzzerType type}) Future<CommandResponse>
Sets the buzzer type on the scanner.
setBuzzerVolume({required dynamic deviceId, required int volume}) Future<CommandResponse>
Sets the buzzer volume (persistent).
setGoodReadLedDuration({required dynamic deviceId, required GoodReadLedDuration duration}) Future<CommandResponse>
Sets the good read LED duration on the scanner.
setLED({required dynamic deviceId, required LEDColor color}) Future<CommandResponse>
Sets the LED color permanently (persistent).
setVibratorDuration({required dynamic deviceId, required VibratorDuration duration}) Future<CommandResponse>
Sets the vibration duration on the scanner.
testBuzzerVolume({required dynamic deviceId, required int volume}) Future<CommandResponse>
Tests the volume without storing it (non-persistent).
testLED({required dynamic deviceId, required LEDColor color}) Future<CommandResponse>
Tests the LED by setting the color temporarily (non-persistent).
toggleBatteryChargingIndicator({required dynamic deviceId, required bool enabled}) Future<CommandResponse>
Toggles the battery charging indicator on or off based on the enabled flag.
toggleBuzzer({required dynamic deviceId, required bool enabled}) Future<CommandResponse>
Toggles the buzzer on or off based on the enabled flag.
toggleBuzzerOnKeyclick({required dynamic deviceId, required bool enabled}) Future<CommandResponse>
Toggles the buzzer sound when pressing any button on the scanner based on the enabled flag.
toggleVibrateOnScanButtonPress({required dynamic deviceId, required bool enabled}) Future<CommandResponse>
Toggles the vibration when the scan button is pressed based on the enabled flag.
toggleVibrator({required dynamic deviceId, required bool enabled}) Future<CommandResponse>
Toggles the vibrator on or off based on the enabled flag.
toString() String
A string representation of this object.
inherited

Operators

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