Android.Telephony.PhoneNumberUtils.FormatNumber Method
Format the phone number only if the given number hasn't been formatted.

Syntax

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

Parameters

phoneNumber
the number to be formatted.
phoneNumberE164
the E164 format number whose country code is used if the given phoneNumber doesn't have the country code.
defaultCountryIso
the ISO 3166-1 two letters country code whose convention will be used if the phoneNumberE164 is null or invalid, or if phoneNumber contains IDD.

Returns

Documentation for this section has not yet been entered.

Remarks

Format the phone number only if the given number hasn't been formatted.

The number which has only dailable character is treated as not being formatted.

[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