語言

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

Notification.Style:負責修改通知樣式的物件

傳回

這個 Android.App.Notification.Builder 實例,允許通話串接。

屬性

備註

新增一個豐富的通知風格,在建置時套用。

Android 參考資料。android.app.Notification.Builder.setStyle

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於