Added in API level 30

CommandAction


class CommandAction : ControlAction
kotlin.Any
   ↳ android.service.controls.actions.ControlAction
   ↳ android.service.controls.actions.CommandAction

A simple ControlAction indicating that the user has interacted with a Control created using a StatelessTemplate.

Summary

Inherited constants
Public constructors
CommandAction(templateId: String, challengeValue: String?)

CommandAction(templateId: String)

Public methods
Int

Inherited functions

Public constructors

CommandAction

Added in API level 30
CommandAction(
    templateId: String,
    challengeValue: String?)
Parameters
templateId String: the identifier of the StatelessTemplate that originated this action. This value cannot be null.
challengeValue String?: a value sent by the user along with the action to authenticate. null is sent when no authentication is needed or has not been requested.

CommandAction

Added in API level 30
CommandAction(templateId: String)
Parameters
templateId String: the identifier of the StatelessTemplate that originated this action. This value cannot be null.

Public methods

getActionType

Added in API level 30
fun getActionType(): Int
Return
Int ControlAction#TYPE_COMMAND