PackageItemInfo.DisplayNameComparator.Compare Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Compares the items' loaded labels, using their names for missing labels.
[Android.Runtime.Register("compare", "(Landroid/content/pm/PackageItemInfo;Landroid/content/pm/PackageItemInfo;)I", "")]
public int Compare(Android.Content.PM.PackageItemInfo? aa, Android.Content.PM.PackageItemInfo? ab);
[<Android.Runtime.Register("compare", "(Landroid/content/pm/PackageItemInfo;Landroid/content/pm/PackageItemInfo;)I", "")>]
member this.Compare : Android.Content.PM.PackageItemInfo * Android.Content.PM.PackageItemInfo -> int
Parameters
The first package item whose label is compared.
The second package item 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.