語言

Notification.HeadsUpContentView 屬性

定義

警告

deprecated

中格式版的 contentView,讓通知有機會在 contentView 中新增動作按鈕。

[Android.Runtime.Register("headsUpContentView")]
[System.Obsolete("deprecated")]
public Android.Widget.RemoteViews? HeadsUpContentView { get; set; }
[<Android.Runtime.Register("headsUpContentView")>]
[<System.Obsolete("deprecated")>]
member this.HeadsUpContentView : Android.Widget.RemoteViews with get, set

屬性值

屬性

備註

中格式版的 contentView,讓通知有機會在 contentView 中新增動作按鈕。 系統介面可自行決定將此顯示為提醒式通知,讓使用者在不離開當前活動的情況下也能看到。 在 N 時,此場可能是空的。 抬頭通知視圖由 Notification.Builder 的輸入決定;自訂的 RemoteViews 可選擇性地提供 Notification.Builder.setCustomHeadsUpContentView(RemoteViews)。

Android 參考資料。android.app.Notification.headsUpContentView

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

適用於