Stay organized with collections
Save and categorize content based on your preferences.
FragmentBreadCrumbs.OnBreadCrumbClickListener
public
static
interface
FragmentBreadCrumbs.OnBreadCrumbClickListener
android.app.FragmentBreadCrumbs.OnBreadCrumbClickListener
|
This interface was deprecated
in API level 28.
This widget is no longer supported.
Interface to intercept clicks on the bread crumbs.
Summary
Public methods
onBreadCrumbClick
public abstract boolean onBreadCrumbClick (FragmentManager.BackStackEntry backStack,
int flags)
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. |
Returns |
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.
[[["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,["# FragmentBreadCrumbs.OnBreadCrumbClickListener\n\nAdded in [API level 12](/guide/topics/manifest/uses-sdk-element#ApiLevels) \nDeprecated in [API level\n28](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\nFragmentBreadCrumbs.OnBreadCrumbClickListener\n=============================================\n\n*** ** * ** ***\n\n[Kotlin](/reference/kotlin/android/app/FragmentBreadCrumbs.OnBreadCrumbClickListener \"View this page in Kotlin\") \\|Java\n\n\n`\npublic\nstatic\n\n\ninterface\nFragmentBreadCrumbs.OnBreadCrumbClickListener\n`\n\n\n`\n\n\n`\n\n|-----------------------------------------------------------|\n| android.app.FragmentBreadCrumbs.OnBreadCrumbClickListener |\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\n\n**This interface was deprecated\nin API level 28.** \n\nThis 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` | ` `[onBreadCrumbClick](/reference/android/app/FragmentBreadCrumbs.OnBreadCrumbClickListener#onBreadCrumbClick(android.app.FragmentManager.BackStackEntry,%20int))`(`[FragmentManager.BackStackEntry](/reference/android/app/FragmentManager.BackStackEntry)` backStack, int flags) ` Called when a bread crumb is clicked. |\n\nPublic methods\n--------------\n\n### onBreadCrumbClick\n\nAdded in [API level 12](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\n```\npublic abstract boolean onBreadCrumbClick (FragmentManager.BackStackEntry backStack, \n int flags)\n```\n\nCalled when a bread crumb is clicked.\n\n\u003cbr /\u003e\n\n| Parameters ||\n|-------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `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. \u003cbr /\u003e |\n| `flags` | `int`: Additional information about the entry. Currently always 0. \u003cbr /\u003e |\n\n| Returns ||\n|-----------|------------------------------------------------------------------------------------------------------------------------------------|\n| `boolean` | Return true to consume this click. Return to false to allow the default action (popping back stack to this entry) to occur. \u003cbr /\u003e |"]]