setAiming

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

Toggles the aiming 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 aiming.


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

Callback-based version of setAiming for Java interoperability.

Parameters

deviceId

The identifier of the target device.

enabled

A boolean indicating whether to enable or disable aiming.

callback

Callback to receive the CommandResponse.