PhoneNumberUtils.GetFormatTypeForLocale(Locale) 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.
Caution
deprecated
Returns the phone number formatting type for the given locale.
[Android.Runtime.Register("getFormatTypeForLocale", "(Ljava/util/Locale;)I", "")]
[System.Obsolete("deprecated")]
public static Android.Telephony.PhoneNumberFormat GetFormatTypeForLocale (Java.Util.Locale? locale);
[<Android.Runtime.Register("getFormatTypeForLocale", "(Ljava/util/Locale;)I", "")>]
[<System.Obsolete("deprecated")>]
static member GetFormatTypeForLocale : Java.Util.Locale -> Android.Telephony.PhoneNumberFormat
Parameters
- locale
- Locale
The locale of interest, usually Locale#getDefault()
Returns
The formatting type for the given locale, or FORMAT_UNKNOWN if the formatting rules are not known for the given locale
- Attributes
Remarks
Returns the phone number formatting type for the given locale.
This member is deprecated. Use link #formatNumber(String phoneNumber, String defaultCountryIso) instead
Java documentation for android.telephony.PhoneNumberUtils.getFormatTypeForLocale(java.util.Locale)
.
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.