Condividi tramite


PhoneNumberUtils.ExtractNetworkPortion(String) Method

Definition

Extracts the network address portion and canonicalizes (filters out separators.

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

Parameters

phoneNumber
String

Returns

Attributes

Remarks

Extracts the network address portion and canonicalizes (filters out separators.) Network address portion is everything up to DTMF control digit separators (pause or wait), but without non-dialable characters.

Please note that the GSM wild character is allowed in the result. This must be resolved before dialing.

Returns null if phoneNumber == null

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