Udostępnij za pośrednictwem


EmergencyNumber.IsInEmergencyServiceCategories Method

Definition

Checks if the emergency number is in the supplied emergency service category(s).

[Android.Runtime.Register("isInEmergencyServiceCategories", "(I)Z", "", ApiSince=29)]
public bool IsInEmergencyServiceCategories (Android.Telephony.Emergency.EmergencyServiceCategory categories);
[<Android.Runtime.Register("isInEmergencyServiceCategories", "(I)Z", "", ApiSince=29)>]
member this.IsInEmergencyServiceCategories : Android.Telephony.Emergency.EmergencyServiceCategory -> bool

Parameters

categories
EmergencyServiceCategory
  • the supplied emergency service categories

Returns

true if the emergency number is in the specified emergency service category(s) or if its emergency service category is #EMERGENCY_SERVICE_CATEGORY_UNSPECIFIED; false otherwise.

Attributes

Remarks

Checks if the emergency number is in the supplied emergency service category(s).

Java documentation for android.telephony.emergency.EmergencyNumber.isInEmergencyServiceCategories(int).

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