Condividi tramite


Notification.HeadsUpContentView Property

Definition

A medium-format version of #contentView, providing the Notification an opportunity to add action buttons to contentView.

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

Property Value

Attributes

Remarks

A medium-format version of #contentView, providing the Notification an opportunity to add action buttons to contentView. At its discretion, the system UI may choose to show this as a heads-up notification, which will pop up so the user can see it without leaving their current activity.

As of N, this field may be null. The heads-up notification view is determined by the inputs to Notification.Builder; a custom RemoteViews can optionally be supplied with Notification.Builder#setCustomHeadsUpContentView(RemoteViews).

Java documentation for android.app.Notification.headsUpContentView.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to