Partager via


ModeAction Constructors

Definition

Overloads

ModeAction(String, Int32)
ModeAction(String, Int32, String)

ModeAction(String, Int32)

[Android.Runtime.Register(".ctor", "(Ljava/lang/String;I)V", "", ApiSince=30)]
public ModeAction (string templateId, int newMode);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/String;I)V", "", ApiSince=30)>]
new Android.Service.Controls.Actions.ModeAction : string * int -> Android.Service.Controls.Actions.ModeAction

Parameters

templateId
String

the identifier of the TemperatureControlTemplate that originated this action.

newMode
Int32

new value for the mode.

Attributes

Remarks

Java documentation for android.service.controls.actions.ModeAction.ModeAction(java.lang.String, int).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

ModeAction(String, Int32, String)

[Android.Runtime.Register(".ctor", "(Ljava/lang/String;ILjava/lang/String;)V", "", ApiSince=30)]
public ModeAction (string templateId, int newMode, string? challengeValue);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/String;ILjava/lang/String;)V", "", ApiSince=30)>]
new Android.Service.Controls.Actions.ModeAction : string * int * string -> Android.Service.Controls.Actions.ModeAction

Parameters

templateId
String

the identifier of the TemperatureControlTemplate that originated this action.

newMode
Int32

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.

Attributes

Remarks

Java documentation for android.service.controls.actions.ModeAction.ModeAction(java.lang.String, int, java.lang.String).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to