Condividi tramite


PhoneNumberUtils.NormalizeNumber(String) Method

Definition

Normalize a phone number by removing the characters other than digits.

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

Parameters

phoneNumber
String

the number to be normalized.

Returns

the normalized number.

Attributes

Remarks

Normalize a phone number by removing the characters other than digits. If the given number has keypad letters, the letters will be converted to digits first.

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