Language

Control.StatefulBuilder.SetControlTemplate(ControlTemplate) Method

Definition

Set the ControlTemplate to define the primary user interaction

[Android.Runtime.Register("setControlTemplate", "(Landroid/service/controls/templates/ControlTemplate;)Landroid/service/controls/Control$StatefulBuilder;", "", ApiSince=30)]
public Android.Service.Controls.Control.StatefulBuilder SetControlTemplate(Android.Service.Controls.Templates.ControlTemplate controlTemplate);
[<Android.Runtime.Register("setControlTemplate", "(Landroid/service/controls/templates/ControlTemplate;)Landroid/service/controls/Control$StatefulBuilder;", "", ApiSince=30)>]
member this.SetControlTemplate : Android.Service.Controls.Templates.ControlTemplate -> Android.Service.Controls.Control.StatefulBuilder

Parameters

controlTemplate
ControlTemplate

instance of ControlTemplate, that defines how the Control will behave and what interactions are available to the user. This value cannot be null.

Returns

this This value cannot be null.

Attributes

Remarks

Set the ControlTemplate to define the primary user interaction

Devices may support a variety of user interactions, and all interactions cannot be represented with a single ControlTemplate. Therefore, the selected template should be most closely aligned with what the expected primary device action will be. Any secondary interactions can be done via the setAppIntent(PendingIntent).

Android reference for android.service.controls.Control.StatefulBuilder.setControlTemplate.

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