共用方式為


TemperatureControlTemplate 建構函式

定義

建構新的 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

參數

templateId
String

此範本物件的識別碼

controlTemplate
ControlTemplate

要用來與用戶互動的範本

currentMode
Int32

的目前模式 Control

currentActiveMode
Int32

目前的作用中模式 Control

modesFlag
Int32

表示 可用模式的旗標 Control

屬性

備註

建構新的 TemperatureControlTemplate

目前和作用中模式必須是旗標所支援模式之一。

android.service.controls.templates.TemperatureControlTemplate.TemperatureControlTemplate(java.lang.String, android.service.controls.templates.ControlTemplate, int, int, int)Java 檔。

此頁面的部分是根據 Android 開放原始碼專案所建立和共用的工作進行修改,並根據 Creative Commons 2.5 屬性授權中所述的詞彙使用。

適用於