Sdílet prostřednictvím


PhoneNumberUtils.FormatNumberToRFC3966(String, String) Method

Definition

Formats the specified phoneNumber to the RFC3966 representation.

[Android.Runtime.Register("formatNumberToRFC3966", "(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;", "", ApiSince=23)]
public static string? FormatNumberToRFC3966 (string? phoneNumber, string? defaultCountryIso);
[<Android.Runtime.Register("formatNumberToRFC3966", "(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;", "", ApiSince=23)>]
static member FormatNumberToRFC3966 : string * string -> string

Parameters

phoneNumber
String

the phone number to format.

defaultCountryIso
String

the ISO 3166-1 two letters country code in UPPER CASE.

Returns

the RFC3966 representation, or null if the given phone number is not valid.

Attributes

Remarks

Formats the specified phoneNumber to the RFC3966 representation.

Java documentation for android.telephony.PhoneNumberUtils.formatNumberToRFC3966(java.lang.String, 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