setDeleteKey

abstract suspend fun setDeleteKey(deviceId: String, enabled: Boolean): CommandResponse

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

Return

A CommandResponse indicating the success or failure of the operation.

Parameters

deviceId

The identifier of the target device.

enabled

A boolean indicating whether to enable or disable the delete key.


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

Callback-based version of setDeleteKey for Java interoperability.

Parameters

deviceId

The identifier of the target device.

enabled

A boolean indicating whether to enable or disable the delete key.

callback

Callback to receive the CommandResponse.