Taal

PhoneNumberUtils.IsGlobalPhoneNumber(String) Method

Definition

Checks whether text matches Android's global phone-number syntax.

[Android.Runtime.Register("isGlobalPhoneNumber", "(Ljava/lang/String;)Z", "")]
public static bool IsGlobalPhoneNumber(string? phoneNumber);
[<Android.Runtime.Register("isGlobalPhoneNumber", "(Ljava/lang/String;)Z", "")>]
static member IsGlobalPhoneNumber : string -> bool

Parameters

phoneNumber
String

The text to check against the global phone-number pattern.

Returns

true for a nonempty string with an optional leading plus sign followed by ASCII digits, periods, or hyphens; otherwise, false.

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