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

Most visited


Recently visited


ModeAction

public final class ModeAction
extends ControlAction

java.lang.Object
   ↳ android.service.controls.actions.ControlAction
     ↳ android.service.controls.actions.ModeAction


Action sent by the user to indicate a change of mode. This action is available when the Control was created with a TemperatureControlTemplate.

Summary


Inherited constants

Public constructors

ModeAction(String templateId, int newMode, String challengeValue)
ModeAction(String templateId, int newMode)

Public methods

int getActionType()

The ActionType associated with this class.

int getNewMode()

Inherited methods

Public constructors


ModeAction

public ModeAction (String templateId, 
                int newMode, 
                String challengeValue)

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

newMode int: new value for the mode.

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.

ModeAction

public ModeAction (String templateId, 
                int newMode)

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

newMode int: new value for the mode.

Public methods


getActionType

public int getActionType ()

The ActionType associated with this class.

Returns
int ControlAction#TYPE_MODE.

getNewMode

public int getNewMode ()

Returns
int

Browse this site in English?

You requested a page in English, but your language preference for this site is English.

Would you like to change your language preference and browse this site in English? If you want to change your language preference later, use the language menu at the bottom of each page.