Added in API level 30

ModeAction


class ModeAction : ControlAction
kotlin.Any
   ↳ 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(templateId: String, newMode: Int, challengeValue: String?)

ModeAction(templateId: String, newMode: Int)

Public methods
Int

Int

Inherited functions

Public constructors

ModeAction

Added in API level 30
ModeAction(
    templateId: String,
    newMode: Int,
    challengeValue: String?)
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.

ModeAction

Added in API level 30
ModeAction(
    templateId: String,
    newMode: Int)
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

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

getNewMode

Added in API level 30
fun getNewMode(): Int