Share via


PhoneNumberUtils.FormatNumberToE164(String, String) Method

Definition

Formats the specified phoneNumber to the E.

[Android.Runtime.Register("formatNumberToE164", "(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;", "")]
public static string? FormatNumberToE164 (string? phoneNumber, string? defaultCountryIso);
[<Android.Runtime.Register("formatNumberToE164", "(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;", "")>]
static member FormatNumberToE164 : string * string -> string

Parameters

phoneNumber
String

the phone number to format.

defaultCountryIso
String

the ISO 3166-1 two letters country code in UPPER CASE.

Returns

the E.164 representation, or null if the given phone number is not valid.

Attributes

Remarks

Formats the specified phoneNumber to the E.164 representation.

Java documentation for android.telephony.PhoneNumberUtils.formatNumberToE164(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