setPreambleFromKeys

abstract suspend fun setPreambleFromKeys(deviceId: String, keys: List<DirectInputKey>): CommandResponse

Sets the preamble 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 preamble.


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

Callback-based version of setPreambleFromKeys for Java interoperability.

Parameters

deviceId

The identifier of the target device.

keys

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

callback

Callback to receive the CommandResponse.