setTriggerRepeat

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

Toggles the trigger repeat 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 trigger repeat.


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

Callback-based version of setTriggerRepeat for Java interoperability.

Parameters

deviceId

The identifier of the target device.

enabled

A boolean indicating whether to enable or disable trigger repeat.

callback

Callback to receive the CommandResponse.