Compartilhar via


PhoneStateListener.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", ApiSince=31)]
[Android.Runtime.RequiresPermission("android.permission.READ_PHONE_STATE")]
public virtual 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", ApiSince=31)>]
[<Android.Runtime.RequiresPermission("android.permission.READ_PHONE_STATE")>]
abstract member OnEmergencyNumberListChanged : System.Collections.Generic.IDictionary<Java.Lang.Integer, System.Collections.Generic.IList<Android.Telephony.Emergency.EmergencyNumber>> -> unit
override this.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 null.

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#listen(PhoneStateListener, int) was called. If this TelephonyManager object was created with TelephonyManager#createForSubscriptionId(int), then the callback applies to the given subId. Otherwise, this callback applies to SubscriptionManager#getDefaultSubscriptionId().

This member is deprecated. Use TelephonyCallback.EmergencyNumberListListener instead.

Java documentation for android.telephony.PhoneStateListener.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