setMode

abstract suspend fun setMode(deviceId: String, mode: CodabarMode): CommandResponse

Sets the Codabar mode for the scanner.

Return

A CommandResponse indicating the success or failure of the command.

Parameters

deviceId

The identifier of the target device.

mode

The Codabar mode to set.


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

Callback-based version of setMode for Java interoperability.

Parameters

deviceId

The identifier of the target device.

mode

The Codabar mode to set.

callback

Callback to receive CommandResponse.