次の方法で共有


BooleanAction Constructors

Definition

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

Java documentation for android.service.controls.actions.BooleanAction.BooleanAction(java.lang.String, boolean).

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

Java documentation for android.service.controls.actions.BooleanAction.BooleanAction(java.lang.String, boolean, 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