ReadOptions

interface ReadOptions

Interface defining methods for configuring scan options such as read modes, illumination, and barcode settings.

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

Functions

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

Toggles the aiming feature for the scanner based on the enabled flag.

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

Callback-based version of setAiming for Java interoperability.

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

Toggles the delete key feature for the scanner based on the enabled flag.

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

Callback-based version of setDeleteKey for Java interoperability.

Link copied to clipboard
abstract suspend fun setIlluminationMode(deviceId: String, mode: IlluminationMode): CommandResponse

Sets the illumination mode for the scanner.

abstract fun setIlluminationMode(deviceId: String, mode: IlluminationMode, callback: (Result<CommandResponse>) -> Unit)

Callback-based version of setIlluminationMode for Java interoperability.

Link copied to clipboard

Sets the mode for reading positive and negative barcodes.

Callback-based version of setPositiveAndNegativeBarcodesMode for Java interoperability.

Link copied to clipboard
abstract suspend fun setReadMode(deviceId: String, mode: ReadMode): CommandResponse

Sets the read mode for the scanner.

abstract fun setReadMode(deviceId: String, mode: ReadMode, callback: (Result<CommandResponse>) -> Unit)

Callback-based version of setReadMode for Java interoperability.

Link copied to clipboard
abstract suspend fun setReadTime(deviceId: String, time: ReadTime): CommandResponse

Sets the read time for the scanner.

abstract fun setReadTime(deviceId: String, time: ReadTime, callback: (Result<CommandResponse>) -> Unit)

Callback-based version of setReadTime for Java interoperability.

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

Toggles the trigger repeat feature for the scanner based on the enabled flag.

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

Callback-based version of setTriggerRepeat for Java interoperability.