Dela via


Notification.Priority Property

Definition

Relative priority for this notification.

[Android.Runtime.Register("priority")]
public int Priority { get; set; }
[<Android.Runtime.Register("priority")>]
member this.Priority : int with get, set

Property Value

Attributes

Remarks

Relative priority for this notification.

Priority is an indication of how much of the user's valuable attention should be consumed by this notification. Low-priority notifications may be hidden from the user in certain situations, while the user might be interrupted for a higher-priority notification. The system will make a determination about how to interpret this priority when presenting the notification.

A notification that is at least #PRIORITY_HIGH is more likely to be presented as a heads-up notification.

This member is deprecated. use NotificationChannel#getImportance() instead.

Java documentation for android.app.Notification.priority.

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