Udostępnij za pośrednictwem


ToggleRangeTemplate Constructors

Definition

Overloads

ToggleRangeTemplate(String, ControlButton, RangeTemplate)

Constructs a new ToggleRangeTemplate.

ToggleRangeTemplate(String, Boolean, ICharSequence, RangeTemplate)

Constructs a new ToggleRangeTemplate.

ToggleRangeTemplate(String, Boolean, String, RangeTemplate)

ToggleRangeTemplate(String, ControlButton, RangeTemplate)

Constructs a new ToggleRangeTemplate.

[Android.Runtime.Register(".ctor", "(Ljava/lang/String;Landroid/service/controls/templates/ControlButton;Landroid/service/controls/templates/RangeTemplate;)V", "", ApiSince=30)]
public ToggleRangeTemplate (string templateId, Android.Service.Controls.Templates.ControlButton button, Android.Service.Controls.Templates.RangeTemplate range);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/String;Landroid/service/controls/templates/ControlButton;Landroid/service/controls/templates/RangeTemplate;)V", "", ApiSince=30)>]
new Android.Service.Controls.Templates.ToggleRangeTemplate : string * Android.Service.Controls.Templates.ControlButton * Android.Service.Controls.Templates.RangeTemplate -> Android.Service.Controls.Templates.ToggleRangeTemplate

Parameters

templateId
String

the identifier for this template.

button
ControlButton

a ControlButton to use for the toggle interface

range
RangeTemplate

a RangeTemplate to use for the range interface

Attributes

Remarks

Constructs a new ToggleRangeTemplate.

Java documentation for android.service.controls.templates.ToggleRangeTemplate.ToggleRangeTemplate(java.lang.String, android.service.controls.templates.ControlButton, android.service.controls.templates.RangeTemplate).

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

ToggleRangeTemplate(String, Boolean, ICharSequence, RangeTemplate)

Constructs a new ToggleRangeTemplate.

[Android.Runtime.Register(".ctor", "(Ljava/lang/String;ZLjava/lang/CharSequence;Landroid/service/controls/templates/RangeTemplate;)V", "", ApiSince=30)]
public ToggleRangeTemplate (string templateId, bool checked, Java.Lang.ICharSequence actionDescription, Android.Service.Controls.Templates.RangeTemplate range);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/String;ZLjava/lang/CharSequence;Landroid/service/controls/templates/RangeTemplate;)V", "", ApiSince=30)>]
new Android.Service.Controls.Templates.ToggleRangeTemplate : string * bool * Java.Lang.ICharSequence * Android.Service.Controls.Templates.RangeTemplate -> Android.Service.Controls.Templates.ToggleRangeTemplate

Parameters

templateId
String

the identifier for this template.

checked
Boolean

true if the toggle should be rendered as active.

actionDescription
ICharSequence

action description for the button.

range
RangeTemplate

RangeTemplate to use for the range interface

Attributes

Remarks

Constructs a new ToggleRangeTemplate.

Java documentation for android.service.controls.templates.ToggleRangeTemplate.ToggleRangeTemplate(java.lang.String, boolean, java.lang.CharSequence, android.service.controls.templates.RangeTemplate).

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

ToggleRangeTemplate(String, Boolean, String, RangeTemplate)

[Android.Runtime.Register(".ctor", "(Ljava/lang/String;ZLjava/lang/CharSequence;Landroid/service/controls/templates/RangeTemplate;)V", "", ApiSince=30)]
public ToggleRangeTemplate (string templateId, bool checked, string actionDescription, Android.Service.Controls.Templates.RangeTemplate range);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/String;ZLjava/lang/CharSequence;Landroid/service/controls/templates/RangeTemplate;)V", "", ApiSince=30)>]
new Android.Service.Controls.Templates.ToggleRangeTemplate : string * bool * string * Android.Service.Controls.Templates.RangeTemplate -> Android.Service.Controls.Templates.ToggleRangeTemplate

Parameters

templateId
String
checked
Boolean
actionDescription
String
Attributes

Applies to