PhoneNumberUtils.IsLocalEmergencyNumber(Context, String) Method

Definition

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.

Java documentation for android.telephony.PhoneNumberUtils.isLocalEmergencyNumber(android.content.Context, 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.

Applies to