BooleanAction Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
BooleanAction(String, Boolean) | |
BooleanAction(String, Boolean, String) |
BooleanAction(String, Boolean)
[Android.Runtime.Register(".ctor", "(Ljava/lang/String;Z)V", "", ApiSince=30)]
public BooleanAction (string templateId, bool newState);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/String;Z)V", "", ApiSince=30)>]
new Android.Service.Controls.Actions.BooleanAction : string * bool -> Android.Service.Controls.Actions.BooleanAction
Parameters
- templateId
- String
the identifier of the ToggleTemplate
that produced this action.
- newState
- Boolean
new value for the state displayed by the ToggleTemplate
.
- Attributes
Remarks
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
BooleanAction(String, Boolean, String)
[Android.Runtime.Register(".ctor", "(Ljava/lang/String;ZLjava/lang/String;)V", "", ApiSince=30)]
public BooleanAction (string templateId, bool newState, string? challengeValue);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/String;ZLjava/lang/String;)V", "", ApiSince=30)>]
new Android.Service.Controls.Actions.BooleanAction : string * bool * string -> Android.Service.Controls.Actions.BooleanAction
Parameters
- templateId
- String
the identifier of the template that originated this action.
- newState
- Boolean
new value for the state displayed by the template.
- 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
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.