# BrowseSupportFragment.FragmentHost

Artifact: [androidx.leanback:leanback](https://developer.android.com/jetpack/androidx/releases/leanback) [View Source](https://cs.android.com/search?q=file:androidx/leanback/app/BrowseSupportFragment.java+class:androidx.leanback.app.BrowseSupportFragment.FragmentHost) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/leanback#1.1.0)

*** ** * ** ***


```
public interface BrowseSupportFragment.FragmentHost
```

<br />

*** ** * ** ***

Possible set of actions that `https://developer.android.com/reference/androidx/leanback/app/BrowseSupportFragment` exposes to clients. Custom fragments can interact with `https://developer.android.com/reference/androidx/leanback/app/BrowseSupportFragment` using this interface.

## Summary

| ### Public methods |
|---|---|
| `abstract void` | `https://developer.android.com/reference/androidx/leanback/app/BrowseSupportFragment.FragmentHost#notifyDataReady(androidx.leanback.app.BrowseSupportFragment.MainFragmentAdapter)( https://developer.android.com/reference/androidx/leanback/app/BrowseSupportFragment.MainFragmentAdapter fragmentAdapter )` Fragments mapped to `https://developer.android.com/reference/androidx/leanback/widget/PageRow` are required to invoke this callback once their data is created for transition, the entrance animation only after receiving this callback. |
| `abstract void` | `https://developer.android.com/reference/androidx/leanback/app/BrowseSupportFragment.FragmentHost#notifyViewCreated(androidx.leanback.app.BrowseSupportFragment.MainFragmentAdapter)( https://developer.android.com/reference/androidx/leanback/app/BrowseSupportFragment.MainFragmentAdapter fragmentAdapter )` Fragments are required to invoke this callback once their view is created inside `https://developer.android.com/reference/androidx/fragment/app/Fragment#onViewCreated(android.view.View,android.os.Bundle)` method. |
| `abstract void` | `https://developer.android.com/reference/androidx/leanback/app/BrowseSupportFragment.FragmentHost#showTitleView(boolean)(boolean show)` Show or hide title view in `https://developer.android.com/reference/androidx/leanback/app/BrowseSupportFragment` for fragments mapped to `https://developer.android.com/reference/androidx/leanback/widget/PageRow`. |

## Public methods

### notifyDataReady

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/leanback#1.1.0)

```
abstract void notifyDataReady(
    BrowseSupportFragment.MainFragmentAdapter fragmentAdapter
)
```

Fragments mapped to `https://developer.android.com/reference/androidx/leanback/widget/PageRow` are required to invoke this callback once their data is created for transition, the entrance animation only after receiving this callback. Failure to invoke this method will lead to fragment not showing up.

| Parameters |
|---|---|
| `https://developer.android.com/reference/androidx/leanback/app/BrowseSupportFragment.MainFragmentAdapter fragmentAdapter` | `https://developer.android.com/reference/androidx/leanback/app/BrowseSupportFragment.MainFragmentAdapter` used by the current fragment. |

### notifyViewCreated

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/leanback#1.1.0)

```
abstract void notifyViewCreated(
    BrowseSupportFragment.MainFragmentAdapter fragmentAdapter
)
```

Fragments are required to invoke this callback once their view is created inside `https://developer.android.com/reference/androidx/fragment/app/Fragment#onViewCreated(android.view.View,android.os.Bundle)` method. `https://developer.android.com/reference/androidx/leanback/app/BrowseSupportFragment` starts the entrance animation only after receiving this callback. Failure to invoke this method will lead to fragment not showing up.

| Parameters |
|---|---|
| `https://developer.android.com/reference/androidx/leanback/app/BrowseSupportFragment.MainFragmentAdapter fragmentAdapter` | `https://developer.android.com/reference/androidx/leanback/app/BrowseSupportFragment.MainFragmentAdapter` used by the current fragment. |

### showTitleView

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/leanback#1.1.0)

```
abstract void showTitleView(boolean show)
```

Show or hide title view in `https://developer.android.com/reference/androidx/leanback/app/BrowseSupportFragment` for fragments mapped to `https://developer.android.com/reference/androidx/leanback/widget/PageRow`. Otherwise the request is ignored, in that case BrowseSupportFragment is fully in control of showing/hiding title view.

When HeadersSupportFragment is visible, BrowseSupportFragment will hide search affordance view if there are other focusable rows above currently focused row.

| Parameters |
|---|---|
| `boolean show` | Boolean indicating whether or not to show the title view. |