Indicator

interface Indicator

Interface that provides methods for controlling scanner indicator options.

Includes both coroutine-based suspend functions for Kotlin and callback-based methods for Java interoperability.

Functions

Link copied to clipboard
abstract suspend fun setBuzzerDuration(deviceId: String, duration: BuzzerDuration): CommandResponse

Sets the duration of the buzzer sound for the given deviceId.

abstract fun setBuzzerDuration(deviceId: String, duration: BuzzerDuration, callback: (Result<CommandResponse>) -> Unit)

Callback-based version of setBuzzerDuration for Java interoperability.

Link copied to clipboard
abstract suspend fun setBuzzerType(deviceId: String, type: BuzzerType): CommandResponse

Sets the buzzer type for the given deviceId.

abstract fun setBuzzerType(deviceId: String, type: BuzzerType, callback: (Result<CommandResponse>) -> Unit)

Callback-based version of setBuzzerType for Java interoperability.

Link copied to clipboard
abstract suspend fun setBuzzerVolume(deviceId: String, volume: Int): CommandResponse

Sets the volume of the buzzer for the given deviceId.

abstract fun setBuzzerVolume(deviceId: String, volume: Int, callback: (Result<CommandResponse>) -> Unit)

Callback-based version of setBuzzerVolume for Java interoperability.

Link copied to clipboard
abstract suspend fun setGoodReadLedDuration(deviceId: String, duration: GoodReadLedDuration): CommandResponse

Sets the good read LED duration for the given deviceId.

abstract fun setGoodReadLedDuration(deviceId: String, duration: GoodReadLedDuration, callback: (Result<CommandResponse>) -> Unit)

Callback-based version of setGoodReadLedDuration for Java interoperability.

Link copied to clipboard
abstract suspend fun setLED(deviceId: String, color: LEDColor): CommandResponse

Sets the LED color for the given deviceId.

abstract fun setLED(deviceId: String, color: LEDColor, callback: (Result<CommandResponse>) -> Unit)

Callback-based version of setLED for Java interoperability.

Link copied to clipboard
abstract suspend fun setVibratorDuration(deviceId: String, duration: VibratorDuration): CommandResponse

Sets the duration of the vibration for the given deviceId.

abstract fun setVibratorDuration(deviceId: String, duration: VibratorDuration, callback: (Result<CommandResponse>) -> Unit)

Callback-based version of setVibratorDuration for Java interoperability.

Link copied to clipboard
abstract suspend fun testBuzzerVolume(deviceId: String, volume: Int): CommandResponse

Tests the volume without storing it (non-persistent).

abstract fun testBuzzerVolume(deviceId: String, volume: Int, callback: (Result<CommandResponse>) -> Unit)

Callback-based version of testBuzzerVolume for Java interoperability.

Link copied to clipboard
abstract suspend fun testLED(deviceId: String, color: LEDColor): CommandResponse

Tests the LED by setting the color temporarily (non-persistent).

abstract fun testLED(deviceId: String, color: LEDColor, callback: (Result<CommandResponse>) -> Unit)

Callback-based version of testLED for Java interoperability.

Link copied to clipboard
abstract suspend fun toggleBuzzer(deviceId: String, enabled: Boolean): CommandResponse

Toggles the buzzer on or off for the given deviceId.

abstract fun toggleBuzzer(deviceId: String, enabled: Boolean, callback: (Result<CommandResponse>) -> Unit)

Callback-based version of toggleBuzzer for Java interoperability.

Link copied to clipboard
abstract suspend fun toggleVibrator(deviceId: String, enabled: Boolean): CommandResponse

Toggles the vibrator on or off for the given deviceId.

abstract fun toggleVibrator(deviceId: String, enabled: Boolean, callback: (Result<CommandResponse>) -> Unit)

Callback-based version of toggleVibrator for Java interoperability.