Android.Telephony.PhoneNumberUtils.FormatNumberToE164 Method
Format the given phoneNumber to the E.164 representation.

Syntax

[Android.Runtime.Register("formatNumberToE164", "(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;", "")]
public static string FormatNumberToE164 (string phoneNumber, string defaultCountryIso)

Parameters

phoneNumber
the phone number to format
defaultCountryIso
the ISO 3166-1 two letters country code

Returns

Documentation for this section has not yet been entered.

Remarks

Format the given phoneNumber to the E.164 representation.

The given phone number must have an area code and could have a country code.

The defaultCountryIso is used to validate the given number and generate the E.164 phone number if the given number doesn't have a country code.

[Android Documentation]

Requirements

Namespace: Android.Telephony
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1