Stay organized with collections
Save and categorize content based on your preferences.
VisibilityListener
interface VisibilityListener
Listens to changes in visibility as reported by ActionProvider.refreshVisibility()
.
Summary
Public methods |
abstract Unit |
|
Public methods
onActionProviderVisibilityChanged
abstract fun onActionProviderVisibilityChanged(isVisible: Boolean): Unit
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,["# ActionProvider.VisibilityListener\n\nAdded in [API level 16](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nVisibilityListener\n==================\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/android/view/ActionProvider.VisibilityListener \"View this page in Java\") \n\n```\ninterface VisibilityListener\n```\n\n|-----------------------------------------------------|\n| [android.view.ActionProvider.VisibilityListener](#) |\n\nListens to changes in visibility as reported by [ActionProvider.refreshVisibility()](/reference/kotlin/android/view/ActionProvider#refreshVisibility()).\n\nSummary\n-------\n\n| Public methods ||\n|---------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| abstract [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) | [onActionProviderVisibilityChanged](#onActionProviderVisibilityChanged(kotlin.Boolean))`(`isVisible:` `[Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)`)` \u003cbr /\u003e |\n\nPublic methods\n--------------\n\n### onActionProviderVisibilityChanged\n\nAdded in [API level 16](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nabstract fun onActionProviderVisibilityChanged(isVisible: Boolean): Unit\n```"]]