PhoneNumberUtils.ToaFromString(String) 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.
Returns the TOA for the given dial string Basically, returns TOA_International if there's a + prefix
[Android.Runtime.Register("toaFromString", "(Ljava/lang/String;)I", "")]
public static int ToaFromString(string? s);
[<Android.Runtime.Register("toaFromString", "(Ljava/lang/String;)I", "")>]
static member ToaFromString : string -> int
Parameters
- s
- String
The phone-number text whose leading character is to be checked.
Returns
The international type-of-address value if the input starts with a plus sign; otherwise, the unknown type-of-address value.
- Attributes
Remarks
Returns the TOA for the given dial string Basically, returns TOA_International if there's a + prefix
Java documentation for android.telephony.PhoneNumberUtils.toaFromString(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.