# FragmentBreadCrumbs.OnBreadCrumbClickListener

Added in[API level 12](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  
Deprecated in[API level 28](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

# FragmentBreadCrumbs.OnBreadCrumbClickListener

*** ** * ** ***

[Kotlin](https://developer.android.com/reference/kotlin/android/app/FragmentBreadCrumbs.OnBreadCrumbClickListener "View this page in Kotlin")\|Java

`
public
static


interface
FragmentBreadCrumbs.OnBreadCrumbClickListener
`  
`


`

|-----------------------------------------------------------|
| android.app.FragmentBreadCrumbs.OnBreadCrumbClickListener |

<br />

*** ** * ** ***

<br />

**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                                                                                                                                                                                             ||
|---------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| ` abstract boolean` | ` `[onBreadCrumbClick](https://developer.android.com/reference/android/app/FragmentBreadCrumbs.OnBreadCrumbClickListener#onBreadCrumbClick(android.app.FragmentManager.BackStackEntry,%20int))`(`[FragmentManager.BackStackEntry](https://developer.android.com/reference/android/app/FragmentManager.BackStackEntry)` backStack, int flags) ` Called when a bread crumb is clicked. |

## Public methods

### onBreadCrumbClick

Added in[API level 12](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public abstract boolean onBreadCrumbClick (FragmentManager.BackStackEntry backStack, 
                int flags)
```

Called when a bread crumb is clicked.

<br />

|                                                                                 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. <br /> |
| `flags`     | `int`: Additional information about the entry. Currently always 0. <br />                                                                                      |

|                                                                    Returns                                                                    ||
|-----------|------------------------------------------------------------------------------------------------------------------------------------|
| `boolean` | Return true to consume this click. Return to false to allow the default action (popping back stack to this entry) to occur. <br /> |