Language

ApplicationInfo.DisplayNameComparator.Compare Method

Definition

Compares the applications' labels, using their package names for missing labels.

[Android.Runtime.Register("compare", "(Landroid/content/pm/ApplicationInfo;Landroid/content/pm/ApplicationInfo;)I", "")]
public int Compare(Android.Content.PM.ApplicationInfo? aa, Android.Content.PM.ApplicationInfo? ab);
[<Android.Runtime.Register("compare", "(Landroid/content/pm/ApplicationInfo;Landroid/content/pm/ApplicationInfo;)I", "")>]
member this.Compare : Android.Content.PM.ApplicationInfo * Android.Content.PM.ApplicationInfo -> int

Parameters

aa
ApplicationInfo

The first application whose label is compared.

ab
ApplicationInfo

The second application whose label is compared.

Returns

A value below zero, zero, or a value above zero when the first label sorts before, equally to, or after the second label.

Attributes

Remarks

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