Added in API level 31

TelephonyCallback.EmergencyNumberListListener

public static interface TelephonyCallback.EmergencyNumberListListener

android.telephony.TelephonyCallback.EmergencyNumberListListener


Interface for the current emergency number list listener.

Summary

Public methods

abstract void onEmergencyNumberListChanged(Map<IntegerList<EmergencyNumber>> emergencyNumberList)

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

Public methods

onEmergencyNumberListChanged

Added in API level 31
public abstract void onEmergencyNumberListChanged (Map<IntegerList<EmergencyNumber>> emergencyNumberList)

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 Manifest.permission.READ_PHONE_STATE.
Requires Manifest.permission.READ_PHONE_STATE

Parameters
emergencyNumberList Map: 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. This value cannot be null.