Stay organized with collections
Save and categorize content based on your preferences.
OnBreadCrumbClickListener
interface OnBreadCrumbClickListener
Interface to intercept clicks on the bread crumbs.
Summary
Public methods |
abstract Boolean |
Called when a bread crumb is clicked.
|
Public methods
onBreadCrumbClick
abstract fun onBreadCrumbClick(
backStack: FragmentManager.BackStackEntry!,
flags: Int
): Boolean
Deprecated: Deprecated in Java.
Called when a bread crumb is clicked.
Parameters |
backStack |
FragmentManager.BackStackEntry!: The BackStackEntry whose bread crumb was clicked. May be null, if this bread crumb is for the root of the back stack. |
flags |
Int: Additional information about the entry. Currently always 0. |
Return |
Boolean |
Return true to consume this click. Return to false to allow the default action (popping back stack to this entry) to occur. |
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,["# FragmentBreadCrumbs.OnBreadCrumbClickListener\n\nAdded in [API level 12](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \nDeprecated in [API level 28](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nOnBreadCrumbClickListener\n=========================\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/android/app/FragmentBreadCrumbs.OnBreadCrumbClickListener \"View this page in Java\") \n\n```\ninterface OnBreadCrumbClickListener\n```\n\n|----------------------------------------------------------------|\n| [android.app.FragmentBreadCrumbs.OnBreadCrumbClickListener](#) |\n\n*** ** * ** ***\n\n| **This interface was deprecated in API level 28.**\n|\n| This widget is no longer supported.\n\nInterface to intercept clicks on the bread crumbs.\n\nSummary\n-------\n\n| Public methods ||\n|---------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| abstract [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | [onBreadCrumbClick](#onBreadCrumbClick(android.app.FragmentManager.BackStackEntry,%20kotlin.Int))`(`backStack:` `[FragmentManager.BackStackEntry](/reference/kotlin/android/app/FragmentManager.BackStackEntry)!`, `flags:` `[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`)` Called when a bread crumb is clicked. |\n\nPublic methods\n--------------\n\n### onBreadCrumbClick\n\nAdded in [API level 12](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nabstract fun onBreadCrumbClick(\n backStack: FragmentManager.BackStackEntry!, \n flags: Int\n): Boolean\n```\n\n**Deprecated:** *Deprecated in Java.*\n\nCalled when a bread crumb is clicked.\n\n| Parameters ||\n|-------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `backStack` | [FragmentManager.BackStackEntry](/reference/kotlin/android/app/FragmentManager.BackStackEntry)!: The BackStackEntry whose bread crumb was clicked. May be null, if this bread crumb is for the root of the back stack. |\n| `flags` | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html): Additional information about the entry. Currently always 0. |\n\n| Return ||\n|------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------|\n| [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | Return true to consume this click. Return to false to allow the default action (popping back stack to this entry) to occur. |"]]