Stay organized with collections
Save and categorize content based on your preferences.
TelephonyCallback.CellInfoListener
public
static
interface
TelephonyCallback.CellInfoListener
android.telephony.TelephonyCallback.CellInfoListener
|
Interface for cell info listener.
Summary
Public methods |
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.
|
Public methods
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
[null,null,["Last updated 2025-02-10 UTC."],[],[],null,["# TelephonyCallback.CellInfoListener\n\nAdded in [API level 31](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\nTelephonyCallback.CellInfoListener\n==================================\n\n*** ** * ** ***\n\n[Kotlin](/reference/kotlin/android/telephony/TelephonyCallback.CellInfoListener \"View this page in Kotlin\") \\|Java\n\n\n`\npublic\nstatic\n\n\ninterface\nTelephonyCallback.CellInfoListener\n`\n\n\n`\n\n\n`\n\n|------------------------------------------------------|\n| android.telephony.TelephonyCallback.CellInfoListener |\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\nInterface for cell info listener.\n\nSummary\n-------\n\n| ### Public methods ||\n|------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ` abstract void` | ` `[onCellInfoChanged](/reference/android/telephony/TelephonyCallback.CellInfoListener#onCellInfoChanged(java.util.List\u003candroid.telephony.CellInfo\u003e))`(`[List](/reference/java/util/List)`\u003c`[CellInfo](/reference/android/telephony/CellInfo)`\u003e cellInfo) ` Callback invoked when an observed cell info has changed or new cells have been added or removed on the registered subscription. |\n\nPublic methods\n--------------\n\n### onCellInfoChanged\n\nAdded in [API level 31](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\n```\npublic abstract void onCellInfoChanged (List\u003cCellInfo\u003e cellInfo)\n```\n\nCallback invoked when an observed cell info has changed or new cells have been added\nor removed on the registered subscription.\nNote, the registration subscription ID s from [TelephonyManager](/reference/android/telephony/TelephonyManager) object\nwhich registers TelephonyCallback by\n[TelephonyManager.registerTelephonyCallback(Executor, TelephonyCallback)](/reference/android/telephony/TelephonyManager#registerTelephonyCallback(java.util.concurrent.Executor,%20android.telephony.TelephonyCallback)).\nIf this TelephonyManager object was created with\n[TelephonyManager.createForSubscriptionId(int)](/reference/android/telephony/TelephonyManager#createForSubscriptionId(int)), then the callback applies to the\nsubscription ID. Otherwise, this callback applies to\n[SubscriptionManager.getDefaultSubscriptionId()](/reference/android/telephony/SubscriptionManager#getDefaultSubscriptionId()).\n\n\u003cbr /\u003e\n\n\nRequires [Manifest.permission.READ_PHONE_STATE](/reference/android/Manifest.permission#READ_PHONE_STATE) and [Manifest.permission.ACCESS_FINE_LOCATION](/reference/android/Manifest.permission#ACCESS_FINE_LOCATION)\n\n\u003cbr /\u003e\n\n| Parameters ||\n|------------|-------------------------------------------------------------------------------------|\n| `cellInfo` | `List`: is the list of currently visible cells. This value cannot be `null`. \u003cbr /\u003e |"]]