setPrefixFromKeys

abstract suspend fun setPrefixFromKeys(deviceId: String, keys: List<DirectInputKey>, symbology: FormattableSymbology = FormattableSymbology.ALL_CODES): CommandResponse

Sets the prefix formatting using a list of DirectInputKey.

Return

A CommandResponse indicating the success or failure of the operation.

Parameters

deviceId

The identifier of the target device.

keys

A list of DirectInputKey values to be used for the prefix.

symbology

The symbology type to be used.


abstract fun setPrefixFromKeys(deviceId: String, keys: List<DirectInputKey>, symbology: FormattableSymbology, callback: (Result<CommandResponse>) -> Unit)

Callback-based version of setPrefixFromKeys for Java interoperability.

Parameters

deviceId

The identifier of the target device.

keys

A list of DirectInputKey values to be used for the prefix.

symbology

The symbology type to be used.

callback

Callback to receive the CommandResponse.