Added in [API level 31](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

# TelephonyCallback.CellInfoListener

*** ** * ** ***


`
public
static


interface
TelephonyCallback.CellInfoListener
`


`


`

|---|
| android.telephony.TelephonyCallback.CellInfoListener |

<br />

*** ** * ** ***

Interface for cell info listener.

## Summary

| ### Public methods ||
|---|---|
| ` abstract void` | ` https://developer.android.com/reference/android/telephony/TelephonyCallback.CellInfoListener#onCellInfoChanged(java.util.List<android.telephony.CellInfo>)(https://developer.android.com/reference/java/util/List<https://developer.android.com/reference/android/telephony/CellInfo> cellInfo) ` Callback invoked when an observed cell info has changed or new cells have been added or removed on the registered subscription. |

## Public methods

### onCellInfoChanged

Added in [API level 31](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public abstract void onCellInfoChanged (List<CellInfo> cellInfo)
```

Callback invoked when an observed cell info has changed or new cells have been added
or removed on the registered subscription.
Note, the registration subscription ID s from `https://developer.android.com/reference/android/telephony/TelephonyManager` object
which registers TelephonyCallback by
`https://developer.android.com/reference/android/telephony/TelephonyManager#registerTelephonyCallback(java.util.concurrent.Executor,%20android.telephony.TelephonyCallback)`.
If this TelephonyManager object was created with
`https://developer.android.com/reference/android/telephony/TelephonyManager#createForSubscriptionId(int)`, then the callback applies to the
subscription ID. Otherwise, this callback applies to
`https://developer.android.com/reference/android/telephony/SubscriptionManager#getDefaultSubscriptionId()`.


Requires `https://developer.android.com/reference/android/Manifest.permission#READ_PHONE_STATE` and `https://developer.android.com/reference/android/Manifest.permission#ACCESS_FINE_LOCATION`

<br />

| Parameters ||
|---|---|
| `cellInfo` | `List`: is the list of currently visible cells. This value cannot be `null`. <br /> |