ControlButton 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
ControlButton(Boolean, ICharSequence)
[Android.Runtime.Register(".ctor", "(ZLjava/lang/CharSequence;)V", "", ApiSince=30)]
public ControlButton(bool checked, Java.Lang.ICharSequence actionDescription);
[<Android.Runtime.Register(".ctor", "(ZLjava/lang/CharSequence;)V", "", ApiSince=30)>]
new Android.Service.Controls.Templates.ControlButton : bool * Java.Lang.ICharSequence -> Android.Service.Controls.Templates.ControlButton
參數
- checked
- Boolean
如果按鈕應該被渲染為主動,則為真。
- actionDescription
- ICharSequence
按鈕的動作描述。
- 屬性
備註
此頁面的部分是根據 Android 開放原始碼專案所建立和共用的工作進行修改,並根據 Creative Commons 2.5 屬性授權中所述的詞彙使用。
適用於
ControlButton(Boolean, String)
[Android.Runtime.Register(".ctor", "(ZLjava/lang/CharSequence;)V", "", ApiSince=30)]
public ControlButton(bool checked, string actionDescription);
[<Android.Runtime.Register(".ctor", "(ZLjava/lang/CharSequence;)V", "", ApiSince=30)>]
new Android.Service.Controls.Templates.ControlButton : bool * string -> Android.Service.Controls.Templates.ControlButton
參數
- checked
- Boolean
如果按鈕應該被渲染為主動,則為真。
- actionDescription
- String
按鈕的動作描述。 這個值不可能為零值。
- 屬性
備註
Android 參考資料。android.service.controls.templates.ControlButton.ControlButton
此頁面的部分是根據 Android 開放原始碼專案所建立和共用的工作進行修改,並根據 Creative Commons 2.5 屬性授權中所述的詞彙使用。