Notification.HeadsUpContentView 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
警告
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 所創建與分享的作品,並依授權條款所描述的使用進行修改。