Language

ParsedPhoneNumber(String, Int32, Boolean) Constructor

Definition

Creates a phone-number parsing result with the supplied number, error code, and validity flag.

[Android.Runtime.Register(".ctor", "(Ljava/lang/String;IZ)V", "", ApiSince=36)]
public ParsedPhoneNumber(string phoneNumber, int errorCode, bool isValidPhoneNumber);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/String;IZ)V", "", ApiSince=36)>]
new Android.Telephony.ParsedPhoneNumber : string * int * bool -> Android.Telephony.ParsedPhoneNumber

Parameters

phoneNumber
String

the phone number extracted. Empty if we weren't successful in parsing. This value cannot be null.

errorCode
Int32

The error code seen when extracting the phone number. Pass a value from ParsedPhoneNumberErrorType cast to int.

isValidPhoneNumber
Boolean

whether or not we succeeded in retrieving the number.

Attributes

Remarks

Android reference for android.telephony.ParsedPhoneNumber.ParsedPhoneNumber.

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