setPrefixFromString

abstract suspend fun setPrefixFromString(deviceId: String, prefix: String, symbology: FormattableSymbology = FormattableSymbology.ALL_CODES): CommandResponse

Sets the prefix formatting using a string.

Return

A CommandResponse indicating the success or failure of the operation.

Parameters

deviceId

The identifier of the target device.

prefix

A string to be used as the prefix.

symbology

The symbology type to be used.


abstract fun setPrefixFromString(deviceId: String, prefix: String, symbology: FormattableSymbology, callback: (Result<CommandResponse>) -> Unit)

Callback-based version of setPrefixFromString for Java interoperability.

Parameters

deviceId

The identifier of the target device.

prefix

A string to be used as the prefix.

symbology

The symbology type to be used.

callback

Callback to receive the CommandResponse.