Share via


PhoneNumberUtils.Compare Method

Definition

Overloads

Compare(String, String)

Compare phone numbers a and b, return true if they're identical enough for caller ID purposes.

Compare(Context, String, String)

Compare phone numbers a and b, and return true if they're identical enough for caller ID purposes.

Compare(String, String)

Compare phone numbers a and b, return true if they're identical enough for caller ID purposes.

[Android.Runtime.Register("compare", "(Ljava/lang/String;Ljava/lang/String;)Z", "")]
public static bool Compare (string? a, string? b);
[<Android.Runtime.Register("compare", "(Ljava/lang/String;Ljava/lang/String;)Z", "")>]
static member Compare : string * string -> bool

Parameters

a
String
b
String

Returns

Attributes

Remarks

Compare phone numbers a and b, return true if they're identical enough for caller ID purposes.

This member is deprecated. use #areSamePhoneNumber(String, String, String) instead

Java documentation for android.telephony.PhoneNumberUtils.compare(java.lang.String, java.lang.String).

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

Compare(Context, String, String)

Compare phone numbers a and b, and return true if they're identical enough for caller ID purposes.

[Android.Runtime.Register("compare", "(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)Z", "")]
public static bool Compare (Android.Content.Context? context, string? a, string? b);
[<Android.Runtime.Register("compare", "(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)Z", "")>]
static member Compare : Android.Content.Context * string * string -> bool

Parameters

context
Context
a
String
b
String

Returns

Attributes

Remarks

Compare phone numbers a and b, and return true if they're identical enough for caller ID purposes. Checks a resource to determine whether to use a strict or loose comparison algorithm.

This member is deprecated. use #areSamePhoneNumber(String, String, String) instead

Java documentation for android.telephony.PhoneNumberUtils.compare(android.content.Context, java.lang.String, java.lang.String).

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