Share via


ToggleTemplate(String, ControlButton) Constructor

Definition

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

Parameters

templateId
String

the identifier for this template object

button
ControlButton

a ControlButton that can show the current state and toggle it

Attributes

Remarks

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

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