Udostępnij za pośrednictwem


TelephonyCallback.IEmergencyNumberListListener.OnEmergencyNumberListChanged Method

Definition

Callback invoked when the current emergency number list has changed on the registered subscription.

[Android.Runtime.Register("onEmergencyNumberListChanged", "(Ljava/util/Map;)V", "GetOnEmergencyNumberListChanged_Ljava_util_Map_Handler:Android.Telephony.TelephonyCallback/IEmergencyNumberListListenerInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=31)]
public void OnEmergencyNumberListChanged (System.Collections.Generic.IDictionary<Java.Lang.Integer,System.Collections.Generic.IList<Android.Telephony.Emergency.EmergencyNumber>> emergencyNumberList);
[<Android.Runtime.Register("onEmergencyNumberListChanged", "(Ljava/util/Map;)V", "GetOnEmergencyNumberListChanged_Ljava_util_Map_Handler:Android.Telephony.TelephonyCallback/IEmergencyNumberListListenerInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=31)>]
abstract member OnEmergencyNumberListChanged : System.Collections.Generic.IDictionary<Java.Lang.Integer, System.Collections.Generic.IList<Android.Telephony.Emergency.EmergencyNumber>> -> unit

Parameters

emergencyNumberList
IDictionary<Integer,IList<EmergencyNumber>>

Map associating all active subscriptions on the device with the list of emergency numbers originating from that subscription. If there are no active subscriptions, the map will contain a single entry with SubscriptionManager#INVALID_SUBSCRIPTION_ID as the key and a list of emergency numbers as the value. If no emergency number information is available, the value will be empty.

Attributes

Remarks

Callback invoked when the current emergency number list has changed on the registered subscription.

Note, the registered subscription is associated with TelephonyManager object on which TelephonyManager#registerTelephonyCallback(Executor, TelephonyCallback) was called. If this TelephonyManager object was created with TelephonyManager#createForSubscriptionId(int), then the callback applies to the given subscription ID. Otherwise, this callback applies to SubscriptionManager#getDefaultSubscriptionId().

The calling app should have carrier privileges (see TelephonyManager#hasCarrierPrivileges) if it does not have the android.Manifest.permission#READ_PHONE_STATE.

Java documentation for android.telephony.TelephonyCallback.EmergencyNumberListListener.onEmergencyNumberListChanged(java.util.Map<java.lang.Integer, java.util.List<android.telephony.emergency.EmergencyNumber>>).

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