TemperatureControlTemplate Constructor

Definition

Construct a new TemperatureControlTemplate.

[Android.Runtime.Register(".ctor", "(Ljava/lang/String;Landroid/service/controls/templates/ControlTemplate;III)V", "", ApiSince=30)]
public TemperatureControlTemplate (string templateId, Android.Service.Controls.Templates.ControlTemplate controlTemplate, int currentMode, int currentActiveMode, int modesFlag);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/String;Landroid/service/controls/templates/ControlTemplate;III)V", "", ApiSince=30)>]
new Android.Service.Controls.Templates.TemperatureControlTemplate : string * Android.Service.Controls.Templates.ControlTemplate * int * int * int -> Android.Service.Controls.Templates.TemperatureControlTemplate

Parameters

templateId
String

the identifier for this template object

controlTemplate
ControlTemplate

a template to use for interaction with the user

currentMode
Int32

the current mode for the Control

currentActiveMode
Int32

the current active mode for the Control

modesFlag
Int32

a flag representing the available modes for the Control

Attributes

Remarks

Construct a new TemperatureControlTemplate.

The current and active mode have to be among the ones supported by the flags.

Java documentation for android.service.controls.templates.TemperatureControlTemplate.TemperatureControlTemplate(java.lang.String, android.service.controls.templates.ControlTemplate, int, int, int).

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