PhoneNumberUtils.StringFromStringAndTOA 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.
Overloads
| Name | Description |
|---|---|
| StringFromStringAndTOA(String, PhoneNumberToa) |
Basically: makes sure there's a + in front of a TOA_International number |
| StringFromStringAndTOA(String, Int32) |
Adds an international prefix when the type-of-address value requires it. |
StringFromStringAndTOA(String, PhoneNumberToa)
Basically: makes sure there's a + in front of a TOA_International number
[Android.Runtime.Register("stringFromStringAndTOA", "(Ljava/lang/String;I)Ljava/lang/String;", "")]
public static string? StringFromStringAndTOA(string? s, Android.Telephony.PhoneNumberToa TOA);
[<Android.Runtime.Register("stringFromStringAndTOA", "(Ljava/lang/String;I)Ljava/lang/String;", "")>]
static member StringFromStringAndTOA : string * Android.Telephony.PhoneNumberToa -> string
Parameters
- s
- String
The phone-number text to combine with its type of address.
- TOA
- PhoneNumberToa
The type-of-address value that indicates whether the number is international.
Returns
The input with a leading plus sign added for a nonempty international number that lacks it; otherwise, the input unchanged.
- Attributes
Remarks
Basically: makes sure there's a + in front of a TOA_International number
Returns null if s == null
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
StringFromStringAndTOA(String, Int32)
Adds an international prefix when the type-of-address value requires it.
public static string? StringFromStringAndTOA(string s, int TOA);
static member StringFromStringAndTOA : string * int -> string
Parameters
- s
- String
The phone-number text to combine with its type of address.
- TOA
- Int32
The type-of-address value that indicates whether the number is international.
Returns
The input with a leading plus sign added for a nonempty international number that lacks it; otherwise, the input unchanged.
Remarks
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.