Language

ShortcutInfo.Builder.SetRank(Int32) Method

Definition

"Rank" of a shortcut, which is a non-negative value that's used by the launcher app to sort shortcuts.

[Android.Runtime.Register("setRank", "(I)Landroid/content/pm/ShortcutInfo$Builder;", "GetSetRank_IHandler", ApiSince=25)]
public virtual Android.Content.PM.ShortcutInfo.Builder SetRank(int rank);
[<Android.Runtime.Register("setRank", "(I)Landroid/content/pm/ShortcutInfo$Builder;", "GetSetRank_IHandler", ApiSince=25)>]
abstract member SetRank : int -> Android.Content.PM.ShortcutInfo.Builder
override this.SetRank : int -> Android.Content.PM.ShortcutInfo.Builder

Parameters

rank
Int32

Returns

Attributes

Remarks

"Rank" of a shortcut, which is a non-negative value that's used by the launcher app to sort shortcuts. See ShortcutInfo.getRank() for details.

Android reference for android.content.pm.ShortcutInfo.Builder.setRank.

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