Language

PackageItemInfo.DisplayNameComparator.Compare Method

Definition

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

aa
PackageItemInfo

The first package item whose label is compared.

ab
PackageItemInfo

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.

Applies to