# Print output for @column tags ?> CommandAction - Android SDK | Android Developers

Most visited

Recently visited

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, String challengeValue)
CommandAction(String templateId)

Public methods

int getActionType()

The ActionType associated with this class.

Inherited methods

Public constructors

CommandAction

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. This value may be null.

CommandAction

public CommandAction (String templateId)

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

Public methods

getActionType

public int getActionType ()

The ActionType associated with this class.

Returns
int ControlAction#TYPE_COMMAND