Freigeben über


EmergencyNumber.CompareTo(EmergencyNumber) Method

Definition

Compare the display priority for this emergency number and the supplied emergency number.

[Android.Runtime.Register("compareTo", "(Landroid/telephony/emergency/EmergencyNumber;)I", "", ApiSince=29)]
public int CompareTo (Android.Telephony.Emergency.EmergencyNumber emergencyNumber);
[<Android.Runtime.Register("compareTo", "(Landroid/telephony/emergency/EmergencyNumber;)I", "", ApiSince=29)>]
member this.CompareTo : Android.Telephony.Emergency.EmergencyNumber -> int

Parameters

emergencyNumber
EmergencyNumber

the supplied emergency number

Returns

a negative value if the supplied emergency number has a lower display priority; a positive value if the supplied emergency number has a higher display priority; 0 if both have equal display priority.

Attributes

Remarks

Compare the display priority for this emergency number and the supplied emergency number.

Java documentation for android.telephony.emergency.EmergencyNumber.compareTo(android.telephony.emergency.EmergencyNumber).

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