TemperatureControlTemplate 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
建構新的 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 開放原始碼專案所建立和共用的工作進行修改,並根據 Creative Commons 2.5 屬性授權中所述的詞彙使用。