PhoneNumberUtils.IsLocalEmergencyNumber(Context, 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 if a given number is an emergency number for the country that the user is in.
[Android.Runtime.Register("isLocalEmergencyNumber", "(Landroid/content/Context;Ljava/lang/String;)Z", "")]
public static bool IsLocalEmergencyNumber (Android.Content.Context? context, string? number);
[<Android.Runtime.Register("isLocalEmergencyNumber", "(Landroid/content/Context;Ljava/lang/String;)Z", "")>]
static member IsLocalEmergencyNumber : Android.Content.Context * string -> bool
Parameters
- context
- Context
the specific context which the number should be checked against
- number
- String
the number to look up.
Returns
true if the specified number is an emergency number for the country the user is currently in.
- Attributes
Remarks
Checks if a given number is an emergency number for the country that the user is in.
This member is deprecated. Please use TelephonyManager#isEmergencyNumber(String)
instead.
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.