PhoneNumberUtils.IsWellFormedSmsAddress(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.
Return true iff the network portion of address is,
as far as we can tell on the device, suitable for use as an SMS
destination address.
[Android.Runtime.Register("isWellFormedSmsAddress", "(Ljava/lang/String;)Z", "")]
public static bool IsWellFormedSmsAddress(string? address);
[<Android.Runtime.Register("isWellFormedSmsAddress", "(Ljava/lang/String;)Z", "")>]
static member IsWellFormedSmsAddress : string -> bool
Parameters
- address
- String
The destination address whose network portion is to be checked.
Returns
true if the extracted network portion is nonempty, is not just a plus sign, and contains only dialable characters; otherwise, false.
- Attributes
Remarks
Return true iff the network portion of address is, as far as we can tell on the device, suitable for use as an SMS destination address.
Java documentation for android.telephony.PhoneNumberUtils.isWellFormedSmsAddress(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.