PhoneNumberUtils.IsGlobalPhoneNumber(String) 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.
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.