CommandAction


public final class CommandAction
extends ControlAction

java.lang.Object
   ↳ 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(String templateId)
CommandAction(String templateId, String challengeValue)

Public methods

int getActionType()

The action type associated with this class.

Inherited methods

Public constructors

CommandAction

Added in API level 30
public CommandAction (String templateId)

Parameters
templateId String: the identifier of the StatelessTemplate that originated this action. This value cannot be null.

CommandAction

Added in API level 30
public CommandAction (String templateId, 
                String challengeValue)

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.

Public methods

getActionType

Added in API level 30
public int getActionType ()

The action type associated with this class.

Returns
int ControlAction.TYPE_COMMAND