PhoneNumberUtils.IsEmergencyNumber(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.
Checks a given number against the list of emergency numbers provided by the RIL and SIM card.
[Android.Runtime.Register("isEmergencyNumber", "(Ljava/lang/String;)Z", "")]
public static bool IsEmergencyNumber (string? number);
[<Android.Runtime.Register("isEmergencyNumber", "(Ljava/lang/String;)Z", "")>]
static member IsEmergencyNumber : string -> bool
Parameters
- number
- String
the number to look up.
Returns
true if the number is in the list of emergency numbers listed in the RIL / SIM, otherwise return false.
- Attributes
Remarks
Checks a given number against the list of emergency numbers provided by the RIL and SIM card.
This member is deprecated. Please use TelephonyManager#isEmergencyNumber(String)
instead.
Java documentation for android.telephony.PhoneNumberUtils.isEmergencyNumber(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.