共用方式為


Notification.Builder.SetStyle(Notification+Style) 方法

定義

新增在建置階段要套用的豐富通知樣式。

[Android.Runtime.Register("setStyle", "(Landroid/app/Notification$Style;)Landroid/app/Notification$Builder;", "GetSetStyle_Landroid_app_Notification_Style_Handler")]
public virtual Android.App.Notification.Builder SetStyle (Android.App.Notification.Style? style);
[<Android.Runtime.Register("setStyle", "(Landroid/app/Notification$Style;)Landroid/app/Notification$Builder;", "GetSetStyle_Landroid_app_Notification_Style_Handler")>]
abstract member SetStyle : Android.App.Notification.Style -> Android.App.Notification.Builder
override this.SetStyle : Android.App.Notification.Style -> Android.App.Notification.Builder

參數

style
Notification.Style

負責修改通知樣式的物件。

傳回

屬性

備註

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

適用於