ShortcutInfo.Rank Property

Definition

"Rank" of a shortcut, which is a non-negative, sequential value that's unique for each #getActivity for each of the two types of shortcuts (static and dynamic).

public int Rank { [Android.Runtime.Register("getRank", "()I", "", ApiSince=25)] get; }
[<get: Android.Runtime.Register("getRank", "()I", "", ApiSince=25)>]
member this.Rank : int

Property Value

Attributes

Remarks

"Rank" of a shortcut, which is a non-negative, sequential value that's unique for each #getActivity for each of the two types of shortcuts (static and dynamic).

<em>Floating shortcuts</em>, or shortcuts that are neither static nor dynamic, will all have rank 0, because they aren't sorted.

See the ShortcutManager's class javadoc for details.

Java documentation for android.content.pm.ShortcutInfo.getRank().

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