Share via


Notification.SortKey Property

Definition

Get a sort key that orders this notification among other notifications from the same package.

public virtual string? SortKey { [Android.Runtime.Register("getSortKey", "()Ljava/lang/String;", "GetGetSortKeyHandler")] get; }
[<get: Android.Runtime.Register("getSortKey", "()Ljava/lang/String;", "GetGetSortKeyHandler")>]
member this.SortKey : string

Property Value

Attributes

Remarks

Get a sort key that orders this notification among other notifications from the same package. This can be useful if an external sort was already applied and an app would like to preserve this. Notifications will be sorted lexicographically using this value, although providing different priorities in addition to providing sort key may cause this value to be ignored.

This sort key can also be used to order members of a notification group. See Builder#setGroup.

Java documentation for android.app.Notification.getSortKey().

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

See also