Stay organized with collections
Save and categorize content based on your preferences.
DisplayInfoListener
interface DisplayInfoListener
Interface for display info listener.
Summary
Public methods |
abstract Unit |
Callback invoked when the display info has changed on the registered subscription.
|
Public methods
onDisplayInfoChanged
abstract fun onDisplayInfoChanged(telephonyDisplayInfo: TelephonyDisplayInfo): Unit
Callback invoked when the display info has changed on the registered subscription.
The TelephonyDisplayInfo
contains status information shown to the user based on carrier policy.
Parameters |
telephonyDisplayInfo |
TelephonyDisplayInfo: The display information. This value cannot be null . |
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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-10 UTC."],[],[],null,["# TelephonyCallback.DisplayInfoListener\n\nAdded in [API level 31](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nDisplayInfoListener\n===================\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/android/telephony/TelephonyCallback.DisplayInfoListener \"View this page in Java\") \n\n```\ninterface DisplayInfoListener\n```\n\n|--------------------------------------------------------------|\n| [android.telephony.TelephonyCallback.DisplayInfoListener](#) |\n\nInterface for display info listener.\n\nSummary\n-------\n\n| Public methods ||\n|---------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| abstract [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) | [onDisplayInfoChanged](#onDisplayInfoChanged(android.telephony.TelephonyDisplayInfo))`(`telephonyDisplayInfo:` `[TelephonyDisplayInfo](/reference/kotlin/android/telephony/TelephonyDisplayInfo)`)` Callback invoked when the display info has changed on the registered subscription. |\n\nPublic methods\n--------------\n\n### onDisplayInfoChanged\n\nAdded in [API level 31](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nabstract fun onDisplayInfoChanged(telephonyDisplayInfo: TelephonyDisplayInfo): Unit\n```\n\nCallback invoked when the display info has changed on the registered subscription.\n\nThe [TelephonyDisplayInfo](/reference/kotlin/android/telephony/TelephonyDisplayInfo) contains status information shown to the user based on carrier policy.\n\n| Parameters ||\n|------------------------|-----------------------------------------------------------------------------------------------------------------------------------------|\n| `telephonyDisplayInfo` | [TelephonyDisplayInfo](/reference/kotlin/android/telephony/TelephonyDisplayInfo): The display information. This value cannot be `null`. |"]]