EmergencyNumberListListener
interface EmergencyNumberListListener
android.telephony.TelephonyCallback.EmergencyNumberListListener |
Interface for the current emergency number list listener.
Summary
Public methods | |
---|---|
abstract Unit |
onEmergencyNumberListChanged(emergencyNumberList: MutableMap<Int!, MutableList<EmergencyNumber!>!>) Callback invoked when the current emergency number list has changed on the registered subscription. |
Public methods
onEmergencyNumberListChanged
abstract fun onEmergencyNumberListChanged(emergencyNumberList: MutableMap<Int!, MutableList<EmergencyNumber!>!>): Unit
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
.
Requires android.Manifest.permission#READ_PHONE_STATE
Parameters | |
---|---|
emergencyNumberList |
MutableMap<Int!, MutableList<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. This value cannot be null . |