# BrowseFragment

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

*** ** * ** ***


```
class BrowseFragment : BaseFragment
```

<br />

|---|---|---|---|---|
| [kotlin.Any](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html) |||||
| ↳ | [android.app.Fragment](https://developer.android.com/reference/android/app/Fragment.html) ||||
|   | ↳ | [androidx.leanback.app.BrandedFragment](https://developer.android.com/reference/kotlin/androidx/leanback/app/BrandedFragment) |||
|   |   | ↳ | [androidx.leanback.app.BaseFragment](https://developer.android.com/reference/kotlin/androidx/leanback/app/BaseFragment) ||
|   |   |   | ↳ | [androidx.leanback.app.BrowseFragment](https://developer.android.com/reference/kotlin/androidx/leanback/app/BrowseFragment) |

*** ** * ** ***

> [!CAUTION]
> **This class is deprecated.**   
>
> use `https://developer.android.com/reference/kotlin/androidx/leanback/app/BrowseSupportFragment`

A fragment for creating Leanback browse screens. It is composed of a RowsFragment and a HeadersFragment.

A BrowseFragment renders the elements of its `https://developer.android.com/reference/kotlin/androidx/leanback/widget/ObjectAdapter` as a set of rows in a vertical list. The elements in this adapter must be subclasses of `https://developer.android.com/reference/kotlin/androidx/leanback/widget/Row`.

The HeadersFragment can be set to be either shown or hidden by default, or may be disabled entirely. See `https://developer.android.com/reference/kotlin/androidx/leanback/app/BrowseFragment#setHeadersState(int)` for details.

By default the BrowseFragment includes support for returning to the headers when the user presses Back. For Activities that customize `https://developer.android.com/reference/android/app/Activity.html#onBackPressed()`, you must disable this default Back key support by calling `https://developer.android.com/reference/kotlin/androidx/leanback/app/BrowseFragment#setHeadersTransitionOnBackEnabled(boolean)` with false and use `https://developer.android.com/reference/kotlin/androidx/leanback/app/BrowseFragment.BrowseTransitionListener` and `https://developer.android.com/reference/kotlin/androidx/leanback/app/BrowseFragment#startHeadersTransition(boolean)`.

The recommended theme to use with a BrowseFragment is .

## Summary

| ### Nested types |
|---|
| `class https://developer.android.com/reference/kotlin/androidx/leanback/app/BrowseFragment.BrowseTransitionListener` **This class is deprecated.** use `https://developer.android.com/reference/kotlin/androidx/leanback/app/BrowseSupportFragment` <br /> |
| `abstract class https://developer.android.com/reference/kotlin/androidx/leanback/app/BrowseFragment.FragmentFactory<T : https://developer.android.com/reference/android/app/Fragment.html?>` **This class is deprecated.** use `https://developer.android.com/reference/kotlin/androidx/leanback/app/BrowseSupportFragment` <br /> |
| `interface https://developer.android.com/reference/kotlin/androidx/leanback/app/BrowseFragment.FragmentHost` **This interface is deprecated.** use `https://developer.android.com/reference/kotlin/androidx/leanback/app/BrowseSupportFragment` <br /> |
| `class https://developer.android.com/reference/kotlin/androidx/leanback/app/BrowseFragment.ListRowFragmentFactory : https://developer.android.com/reference/kotlin/androidx/leanback/app/BrowseFragment.FragmentFactory<https://developer.android.com/reference/kotlin/androidx/leanback/app/RowsFragment!>` **This class is deprecated.** use `https://developer.android.com/reference/kotlin/androidx/leanback/app/BrowseSupportFragment` <br /> |
| `class https://developer.android.com/reference/kotlin/androidx/leanback/app/BrowseFragment.MainFragmentAdapter<T : https://developer.android.com/reference/android/app/Fragment.html?>` **This class is deprecated.** use `https://developer.android.com/reference/kotlin/androidx/leanback/app/BrowseSupportFragment` <br /> |
| `interface https://developer.android.com/reference/kotlin/androidx/leanback/app/BrowseFragment.MainFragmentAdapterProvider` **This interface is deprecated.** use `https://developer.android.com/reference/kotlin/androidx/leanback/app/BrowseSupportFragment` <br /> |
| `class https://developer.android.com/reference/kotlin/androidx/leanback/app/BrowseFragment.MainFragmentAdapterRegistry` **This class is deprecated.** use `https://developer.android.com/reference/kotlin/androidx/leanback/app/BrowseSupportFragment` <br /> |
| `class https://developer.android.com/reference/kotlin/androidx/leanback/app/BrowseFragment.MainFragmentRowsAdapter<T : https://developer.android.com/reference/android/app/Fragment.html?>` **This class is deprecated.** use `https://developer.android.com/reference/kotlin/androidx/leanback/app/BrowseSupportFragment` <br /> |
| `interface https://developer.android.com/reference/kotlin/androidx/leanback/app/BrowseFragment.MainFragmentRowsAdapterProvider` **This interface is deprecated.** use `https://developer.android.com/reference/kotlin/androidx/leanback/app/BrowseSupportFragment` <br /> |

| ### Constants |
|---|---|
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/leanback/app/BrowseFragment#HEADERS_DISABLED() = 3` **This property is deprecated.** Deprecated in Java |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/leanback/app/BrowseFragment#HEADERS_ENABLED() = 1` **This property is deprecated.** Deprecated in Java |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/leanback/app/BrowseFragment#HEADERS_HIDDEN() = 2` **This property is deprecated.** Deprecated in Java |

| ### Public constructors |
|---|
| `[BrowseFragment](https://developer.android.com/reference/kotlin/androidx/leanback/app/BrowseFragment#BrowseFragment())()` **This function is deprecated.** Deprecated in Java |

| ### Public functions |
|---|---|
| `java-static https://developer.android.com/reference/android/os/Bundle.html!` | `[createArgs](https://developer.android.com/reference/kotlin/androidx/leanback/app/BrowseFragment#createArgs(android.os.Bundle,java.lang.String,int))(args: https://developer.android.com/reference/android/os/Bundle.html!, title: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!, headersState: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)` **This function is deprecated.** Deprecated in Java |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `[enableMainFragmentScaling](https://developer.android.com/reference/kotlin/androidx/leanback/app/BrowseFragment#enableMainFragmentScaling(boolean))(enable: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)` **This function is deprecated.** Deprecated in Java |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `[enableRowScaling](https://developer.android.com/reference/kotlin/androidx/leanback/app/BrowseFragment#enableRowScaling(boolean))(enable: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)` **This function is deprecated.** use `https://developer.android.com/reference/kotlin/androidx/leanback/app/BrowseFragment#enableMainFragmentScaling(boolean)` instead. <br /> |
| `https://developer.android.com/reference/kotlin/androidx/leanback/widget/ObjectAdapter!` | `[getAdapter](https://developer.android.com/reference/kotlin/androidx/leanback/app/BrowseFragment#getAdapter())()` **This function is deprecated.** Deprecated in Java |
| `@https://developer.android.com/reference/kotlin/androidx/annotation/ColorInt https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `[getBrandColor](https://developer.android.com/reference/kotlin/androidx/leanback/app/BrowseFragment#getBrandColor())()` **This function is deprecated.** Deprecated in Java |
| `https://developer.android.com/reference/kotlin/androidx/leanback/app/HeadersFragment!` | `[getHeadersFragment](https://developer.android.com/reference/kotlin/androidx/leanback/app/BrowseFragment#getHeadersFragment())()` **This function is deprecated.** Deprecated in Java |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `[getHeadersState](https://developer.android.com/reference/kotlin/androidx/leanback/app/BrowseFragment#getHeadersState())()` **This function is deprecated.** Deprecated in Java |
| `https://developer.android.com/reference/android/app/Fragment.html!` | `[getMainFragment](https://developer.android.com/reference/kotlin/androidx/leanback/app/BrowseFragment#getMainFragment())()` **This function is deprecated.** Deprecated in Java |
| `https://developer.android.com/reference/kotlin/androidx/leanback/app/BrowseFragment.MainFragmentAdapterRegistry!` | `[getMainFragmentRegistry](https://developer.android.com/reference/kotlin/androidx/leanback/app/BrowseFragment#getMainFragmentRegistry())()` **This function is deprecated.** Deprecated in Java |
| `https://developer.android.com/reference/kotlin/androidx/leanback/widget/OnItemViewClickedListener!` | `[getOnItemViewClickedListener](https://developer.android.com/reference/kotlin/androidx/leanback/app/BrowseFragment#getOnItemViewClickedListener())()` **This function is deprecated.** Deprecated in Java |
| `https://developer.android.com/reference/kotlin/androidx/leanback/widget/OnItemViewSelectedListener!` | `[getOnItemViewSelectedListener](https://developer.android.com/reference/kotlin/androidx/leanback/app/BrowseFragment#getOnItemViewSelectedListener())()` **This function is deprecated.** Deprecated in Java |
| `https://developer.android.com/reference/kotlin/androidx/leanback/app/RowsFragment!` | `[getRowsFragment](https://developer.android.com/reference/kotlin/androidx/leanback/app/BrowseFragment#getRowsFragment())()` **This function is deprecated.** Deprecated in Java |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `[getSelectedPosition](https://developer.android.com/reference/kotlin/androidx/leanback/app/BrowseFragment#getSelectedPosition())()` **This function is deprecated.** Deprecated in Java |
| `https://developer.android.com/reference/kotlin/androidx/leanback/widget/RowPresenter.ViewHolder!` | `[getSelectedRowViewHolder](https://developer.android.com/reference/kotlin/androidx/leanback/app/BrowseFragment#getSelectedRowViewHolder())()` **This function is deprecated.** Deprecated in Java |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `[isHeadersTransitionOnBackEnabled](https://developer.android.com/reference/kotlin/androidx/leanback/app/BrowseFragment#isHeadersTransitionOnBackEnabled())()` **This function is deprecated.** Deprecated in Java |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `[isInHeadersTransition](https://developer.android.com/reference/kotlin/androidx/leanback/app/BrowseFragment#isInHeadersTransition())()` **This function is deprecated.** Deprecated in Java |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `[isShowingHeaders](https://developer.android.com/reference/kotlin/androidx/leanback/app/BrowseFragment#isShowingHeaders())()` **This function is deprecated.** Deprecated in Java |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `[onCreate](https://developer.android.com/reference/kotlin/androidx/leanback/app/BrowseFragment#onCreate(android.os.Bundle))(savedInstanceState: https://developer.android.com/reference/android/os/Bundle.html!)` **This function is deprecated.** |
| `https://developer.android.com/reference/kotlin/androidx/leanback/app/HeadersFragment!` | `[onCreateHeadersFragment](https://developer.android.com/reference/kotlin/androidx/leanback/app/BrowseFragment#onCreateHeadersFragment())()` **This function is deprecated.** Deprecated in Java |
| `https://developer.android.com/reference/android/view/View.html?` | `[onCreateView](https://developer.android.com/reference/kotlin/androidx/leanback/app/BrowseFragment#onCreateView(android.view.LayoutInflater,android.view.ViewGroup,android.os.Bundle))( inflater: https://developer.android.com/reference/android/view/LayoutInflater.html!, container: https://developer.android.com/reference/android/view/ViewGroup.html?, savedInstanceState: https://developer.android.com/reference/android/os/Bundle.html! )` **This function is deprecated.** |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `[onDestroy](https://developer.android.com/reference/kotlin/androidx/leanback/app/BrowseFragment#onDestroy())()` **This function is deprecated.** |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `[onDestroyView](https://developer.android.com/reference/kotlin/androidx/leanback/app/BrowseFragment#onDestroyView())()` **This function is deprecated.** |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `[onSaveInstanceState](https://developer.android.com/reference/kotlin/androidx/leanback/app/BrowseFragment#onSaveInstanceState(android.os.Bundle))(outState: https://developer.android.com/reference/android/os/Bundle.html!)` **This function is deprecated.** |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `[onStart](https://developer.android.com/reference/kotlin/androidx/leanback/app/BrowseFragment#onStart())()` **This function is deprecated.** |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `[onStop](https://developer.android.com/reference/kotlin/androidx/leanback/app/BrowseFragment#onStop())()` **This function is deprecated.** |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `[setAdapter](https://developer.android.com/reference/kotlin/androidx/leanback/app/BrowseFragment#setAdapter(androidx.leanback.widget.ObjectAdapter))(adapter: https://developer.android.com/reference/kotlin/androidx/leanback/widget/ObjectAdapter!)` **This function is deprecated.** Deprecated in Java |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `[setBrandColor](https://developer.android.com/reference/kotlin/androidx/leanback/app/BrowseFragment#setBrandColor(int))(color: @https://developer.android.com/reference/kotlin/androidx/annotation/ColorInt https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)` **This function is deprecated.** Deprecated in Java |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `[setBrowseTransitionListener](https://developer.android.com/reference/kotlin/androidx/leanback/app/BrowseFragment#setBrowseTransitionListener(androidx.leanback.app.BrowseFragment.BrowseTransitionListener))( listener: https://developer.android.com/reference/kotlin/androidx/leanback/app/BrowseFragment.BrowseTransitionListener! )` **This function is deprecated.** Deprecated in Java |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `[setHeaderPresenterSelector](https://developer.android.com/reference/kotlin/androidx/leanback/app/BrowseFragment#setHeaderPresenterSelector(androidx.leanback.widget.PresenterSelector))(headerPresenterSelector: https://developer.android.com/reference/kotlin/androidx/leanback/widget/PresenterSelector!)` **This function is deprecated.** Deprecated in Java |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `[setHeadersState](https://developer.android.com/reference/kotlin/androidx/leanback/app/BrowseFragment#setHeadersState(int))(headersState: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)` **This function is deprecated.** Deprecated in Java |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `[setHeadersTransitionOnBackEnabled](https://developer.android.com/reference/kotlin/androidx/leanback/app/BrowseFragment#setHeadersTransitionOnBackEnabled(boolean))(headersBackStackEnabled: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)` **This function is deprecated.** Deprecated in Java |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `[setOnItemViewClickedListener](https://developer.android.com/reference/kotlin/androidx/leanback/app/BrowseFragment#setOnItemViewClickedListener(androidx.leanback.widget.OnItemViewClickedListener))(listener: https://developer.android.com/reference/kotlin/androidx/leanback/widget/OnItemViewClickedListener!)` **This function is deprecated.** Deprecated in Java |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `[setOnItemViewSelectedListener](https://developer.android.com/reference/kotlin/androidx/leanback/app/BrowseFragment#setOnItemViewSelectedListener(androidx.leanback.widget.OnItemViewSelectedListener))(listener: https://developer.android.com/reference/kotlin/androidx/leanback/widget/OnItemViewSelectedListener!)` **This function is deprecated.** Deprecated in Java |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `[setSelectedPosition](https://developer.android.com/reference/kotlin/androidx/leanback/app/BrowseFragment#setSelectedPosition(int))(position: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)` **This function is deprecated.** Deprecated in Java |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `[setSelectedPosition](https://developer.android.com/reference/kotlin/androidx/leanback/app/BrowseFragment#setSelectedPosition(int,boolean))(position: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, smooth: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)` **This function is deprecated.** Deprecated in Java |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `[setSelectedPosition](https://developer.android.com/reference/kotlin/androidx/leanback/app/BrowseFragment#setSelectedPosition(int,boolean,androidx.leanback.widget.Presenter.ViewHolderTask))( rowPosition: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, smooth: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html, rowHolderTask: https://developer.android.com/reference/kotlin/androidx/leanback/widget/Presenter.ViewHolderTask! )` **This function is deprecated.** Deprecated in Java |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `[startHeadersTransition](https://developer.android.com/reference/kotlin/androidx/leanback/app/BrowseFragment#startHeadersTransition(boolean))(withHeaders: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)` **This function is deprecated.** Deprecated in Java |

| ### Protected functions |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html!` | `[createEntranceTransition](https://developer.android.com/reference/kotlin/androidx/leanback/app/BrowseFragment#createEntranceTransition())()` **This function is deprecated.** Deprecated in Java |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `[onEntranceTransitionEnd](https://developer.android.com/reference/kotlin/androidx/leanback/app/BrowseFragment#onEntranceTransitionEnd())()` **This function is deprecated.** Deprecated in Java |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `[onEntranceTransitionPrepare](https://developer.android.com/reference/kotlin/androidx/leanback/app/BrowseFragment#onEntranceTransitionPrepare())()` **This function is deprecated.** Deprecated in Java |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `[onEntranceTransitionStart](https://developer.android.com/reference/kotlin/androidx/leanback/app/BrowseFragment#onEntranceTransitionStart())()` **This function is deprecated.** Deprecated in Java |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `[runEntranceTransition](https://developer.android.com/reference/kotlin/androidx/leanback/app/BrowseFragment#runEntranceTransition(java.lang.Object))(entranceTransition: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html!)` **This function is deprecated.** Deprecated in Java |

### Inherited Constants

From [android.content.ComponentCallbacks2](https://developer.android.com/reference/android/content/ComponentCallbacks2.html) `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` `https://developer.android.com/reference/android/content/ComponentCallbacks2.html#TRIM_MEMORY_BACKGROUND = 40`

**This property is deprecated.** Deprecated in Java
`const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` `https://developer.android.com/reference/android/content/ComponentCallbacks2.html#TRIM_MEMORY_COMPLETE = 80`

**This property is deprecated.**
`const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` `https://developer.android.com/reference/android/content/ComponentCallbacks2.html#TRIM_MEMORY_MODERATE = 60`

**This property is deprecated.**
`const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` `https://developer.android.com/reference/android/content/ComponentCallbacks2.html#TRIM_MEMORY_RUNNING_CRITICAL = 15`

**This property is deprecated.**
`const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` `https://developer.android.com/reference/android/content/ComponentCallbacks2.html#TRIM_MEMORY_RUNNING_LOW = 10`

**This property is deprecated.**
`const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` `https://developer.android.com/reference/android/content/ComponentCallbacks2.html#TRIM_MEMORY_RUNNING_MODERATE = 5`

**This property is deprecated.**
`const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` `https://developer.android.com/reference/android/content/ComponentCallbacks2.html#TRIM_MEMORY_UI_HIDDEN = 20`

**This property is deprecated.** Deprecated in Java

### Inherited functions

From [androidx.leanback.app.BaseFragment](https://developer.android.com/reference/kotlin/androidx/leanback/app/BaseFragment) `https://developer.android.com/reference/kotlin/androidx/leanback/app/ProgressBarManager!` `[getProgressBarManager](https://developer.android.com/reference/kotlin/androidx/leanback/app/BaseFragment#getProgressBarManager())()`

**This function is deprecated.** Deprecated in Java
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `[onViewCreated](https://developer.android.com/reference/kotlin/androidx/leanback/app/BaseFragment#onViewCreated(android.view.View,android.os.Bundle))(view: https://developer.android.com/reference/android/view/View.html, savedInstanceState: https://developer.android.com/reference/android/os/Bundle.html?)`

**This function is deprecated.**
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `[prepareEntranceTransition](https://developer.android.com/reference/kotlin/androidx/leanback/app/BaseFragment#prepareEntranceTransition())()`

**This function is deprecated.** Deprecated in Java
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `[startEntranceTransition](https://developer.android.com/reference/kotlin/androidx/leanback/app/BaseFragment#startEntranceTransition())()`

**This function is deprecated.** Deprecated in Java
From [androidx.leanback.app.BrandedFragment](https://developer.android.com/reference/kotlin/androidx/leanback/app/BrandedFragment) `https://developer.android.com/reference/android/graphics/drawable/Drawable.html?` `[getBadgeDrawable](https://developer.android.com/reference/kotlin/androidx/leanback/app/BrandedFragment#getBadgeDrawable())()`

**This function is deprecated.** Deprecated in Java
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` `[getSearchAffordanceColor](https://developer.android.com/reference/kotlin/androidx/leanback/app/BrandedFragment#getSearchAffordanceColor())()`

**This function is deprecated.** Deprecated in Java
`https://developer.android.com/reference/kotlin/androidx/leanback/widget/SearchOrbView.Colors?` `[getSearchAffordanceColors](https://developer.android.com/reference/kotlin/androidx/leanback/app/BrandedFragment#getSearchAffordanceColors())()`

**This function is deprecated.** Deprecated in Java
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-char-sequence/index.html?` `[getTitle](https://developer.android.com/reference/kotlin/androidx/leanback/app/BrandedFragment#getTitle())()`

**This function is deprecated.** Deprecated in Java
`https://developer.android.com/reference/android/view/View.html?` `[getTitleView](https://developer.android.com/reference/kotlin/androidx/leanback/app/BrandedFragment#getTitleView())()`

**This function is deprecated.** Deprecated in Java
`https://developer.android.com/reference/kotlin/androidx/leanback/widget/TitleViewAdapter?` `[getTitleViewAdapter](https://developer.android.com/reference/kotlin/androidx/leanback/app/BrandedFragment#getTitleViewAdapter())()`

**This function is deprecated.** Deprecated in Java
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `[installTitleView](https://developer.android.com/reference/kotlin/androidx/leanback/app/BrandedFragment#installTitleView(android.view.LayoutInflater,android.view.ViewGroup,android.os.Bundle))(
inflater: https://developer.android.com/reference/android/view/LayoutInflater.html,
parent: https://developer.android.com/reference/android/view/ViewGroup.html,
savedInstanceState: https://developer.android.com/reference/android/os/Bundle.html?
)`

**This function is deprecated.** Deprecated in Java
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` `[isShowingTitle](https://developer.android.com/reference/kotlin/androidx/leanback/app/BrandedFragment#isShowingTitle())()`

**This function is deprecated.** Deprecated in Java
`https://developer.android.com/reference/android/view/View.html` `[onInflateTitleView](https://developer.android.com/reference/kotlin/androidx/leanback/app/BrandedFragment#onInflateTitleView(android.view.LayoutInflater,android.view.ViewGroup,android.os.Bundle))(
inflater: https://developer.android.com/reference/android/view/LayoutInflater.html,
parent: https://developer.android.com/reference/android/view/ViewGroup.html?,
savedInstanceState: https://developer.android.com/reference/android/os/Bundle.html?
)`

**This function is deprecated.** Deprecated in Java
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `[onPause](https://developer.android.com/reference/kotlin/androidx/leanback/app/BrandedFragment#onPause())()`

**This function is deprecated.**
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `[onResume](https://developer.android.com/reference/kotlin/androidx/leanback/app/BrandedFragment#onResume())()`

**This function is deprecated.**
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `[setBadgeDrawable](https://developer.android.com/reference/kotlin/androidx/leanback/app/BrandedFragment#setBadgeDrawable(android.graphics.drawable.Drawable))(drawable: https://developer.android.com/reference/android/graphics/drawable/Drawable.html?)`

**This function is deprecated.** Deprecated in Java
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `[setOnSearchClickedListener](https://developer.android.com/reference/kotlin/androidx/leanback/app/BrandedFragment#setOnSearchClickedListener(android.view.View.OnClickListener))(listener: https://developer.android.com/reference/android/view/View.OnClickListener.html?)`

**This function is deprecated.** Deprecated in Java
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `[setSearchAffordanceColor](https://developer.android.com/reference/kotlin/androidx/leanback/app/BrandedFragment#setSearchAffordanceColor(int))(color: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`

**This function is deprecated.** Deprecated in Java
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `[setSearchAffordanceColors](https://developer.android.com/reference/kotlin/androidx/leanback/app/BrandedFragment#setSearchAffordanceColors(androidx.leanback.widget.SearchOrbView.Colors))(colors: https://developer.android.com/reference/kotlin/androidx/leanback/widget/SearchOrbView.Colors)`

**This function is deprecated.** Deprecated in Java
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `[setTitle](https://developer.android.com/reference/kotlin/androidx/leanback/app/BrandedFragment#setTitle(java.lang.CharSequence))(title: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-char-sequence/index.html?)`

**This function is deprecated.** Deprecated in Java
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `[setTitleView](https://developer.android.com/reference/kotlin/androidx/leanback/app/BrandedFragment#setTitleView(android.view.View))(titleView: https://developer.android.com/reference/android/view/View.html?)`

**This function is deprecated.** Deprecated in Java
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `[showTitle](https://developer.android.com/reference/kotlin/androidx/leanback/app/BrandedFragment#showTitle(int))(flags: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`

**This function is deprecated.** Deprecated in Java
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `[showTitle](https://developer.android.com/reference/kotlin/androidx/leanback/app/BrandedFragment#showTitle(boolean))(show: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)`

**This function is deprecated.** Deprecated in Java
From [android.app.Fragment](https://developer.android.com/reference/android/app/Fragment.html) `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `[dump](https://developer.android.com/reference/android/app/Fragment.html#dump(java.lang.String, java.io.FileDescriptor, java.io.PrintWriter, java.lang.String[]))(
prefix: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!,
fd: https://developer.android.com/reference/java/io/FileDescriptor.html!,
writer: https://developer.android.com/reference/java/io/PrintWriter.html!,
args: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-array/index.html<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!>!
)`

**This function is deprecated.**
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` `[equals](https://developer.android.com/reference/android/app/Fragment.html#equals(java.lang.Object))(o: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html!)`

**This function is deprecated.**
`https://developer.android.com/reference/android/app/Activity.html!` `[getActivity](https://developer.android.com/reference/android/app/Fragment.html#getActivity())()`

**This function is deprecated.**
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` `[getAllowEnterTransitionOverlap](https://developer.android.com/reference/android/app/Fragment.html#getAllowEnterTransitionOverlap())()`

**This function is deprecated.**
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` `[getAllowReturnTransitionOverlap](https://developer.android.com/reference/android/app/Fragment.html#getAllowReturnTransitionOverlap())()`

**This function is deprecated.**
`https://developer.android.com/reference/android/os/Bundle.html!` `[getArguments](https://developer.android.com/reference/android/app/Fragment.html#getArguments())()`

**This function is deprecated.**
`https://developer.android.com/reference/android/app/FragmentManager.html!` `[getChildFragmentManager](https://developer.android.com/reference/android/app/Fragment.html#getChildFragmentManager())()`

**This function is deprecated.**
`https://developer.android.com/reference/android/content/Context.html!` `[getContext](https://developer.android.com/reference/android/app/Fragment.html#getContext())()`

**This function is deprecated.**
`https://developer.android.com/reference/android/transition/Transition.html!` `[getEnterTransition](https://developer.android.com/reference/android/app/Fragment.html#getEnterTransition())()`

**This function is deprecated.**
`https://developer.android.com/reference/android/transition/Transition.html!` `[getExitTransition](https://developer.android.com/reference/android/app/Fragment.html#getExitTransition())()`

**This function is deprecated.**
`https://developer.android.com/reference/android/app/FragmentManager.html!` `[getFragmentManager](https://developer.android.com/reference/android/app/Fragment.html#getFragmentManager())()`

**This function is deprecated.**
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html!` `[getHost](https://developer.android.com/reference/android/app/Fragment.html#getHost())()`

**This function is deprecated.**
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` `[getId](https://developer.android.com/reference/android/app/Fragment.html#getId())()`

**This function is deprecated.**
`https://developer.android.com/reference/android/view/LayoutInflater.html!` `[getLayoutInflater](https://developer.android.com/reference/android/app/Fragment.html#getLayoutInflater())()`

**This function is deprecated.**
`https://developer.android.com/reference/android/app/LoaderManager.html!` `[getLoaderManager](https://developer.android.com/reference/android/app/Fragment.html#getLoaderManager())()`

**This function is deprecated.**
`https://developer.android.com/reference/android/app/Fragment.html!` `[getParentFragment](https://developer.android.com/reference/android/app/Fragment.html#getParentFragment())()`

**This function is deprecated.**
`https://developer.android.com/reference/android/transition/Transition.html!` `[getReenterTransition](https://developer.android.com/reference/android/app/Fragment.html#getReenterTransition())()`

**This function is deprecated.**
`https://developer.android.com/reference/android/content/res/Resources.html!` `[getResources](https://developer.android.com/reference/android/app/Fragment.html#getResources())()`

**This function is deprecated.**
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` `[getRetainInstance](https://developer.android.com/reference/android/app/Fragment.html#getRetainInstance())()`

**This function is deprecated.**
`https://developer.android.com/reference/android/transition/Transition.html!` `[getReturnTransition](https://developer.android.com/reference/android/app/Fragment.html#getReturnTransition())()`

**This function is deprecated.**
`https://developer.android.com/reference/android/transition/Transition.html!` `[getSharedElementEnterTransition](https://developer.android.com/reference/android/app/Fragment.html#getSharedElementEnterTransition())()`

**This function is deprecated.**
`https://developer.android.com/reference/android/transition/Transition.html!` `[getSharedElementReturnTransition](https://developer.android.com/reference/android/app/Fragment.html#getSharedElementReturnTransition())()`

**This function is deprecated.**
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` `[getString](https://developer.android.com/reference/android/app/Fragment.html#getString(int))(resId: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`

**This function is deprecated.**
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` `[getTag](https://developer.android.com/reference/android/app/Fragment.html#getTag())()`

**This function is deprecated.**
`https://developer.android.com/reference/android/app/Fragment.html!` `[getTargetFragment](https://developer.android.com/reference/android/app/Fragment.html#getTargetFragment())()`

**This function is deprecated.**
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` `[getTargetRequestCode](https://developer.android.com/reference/android/app/Fragment.html#getTargetRequestCode())()`

**This function is deprecated.**
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-char-sequence/index.html!` `[getText](https://developer.android.com/reference/android/app/Fragment.html#getText(int))(resId: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`

**This function is deprecated.**
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` `[getUserVisibleHint](https://developer.android.com/reference/android/app/Fragment.html#getUserVisibleHint())()`

**This function is deprecated.**
`https://developer.android.com/reference/android/view/View.html!` `[getView](https://developer.android.com/reference/android/app/Fragment.html#getView())()`

**This function is deprecated.**
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` `[hashCode](https://developer.android.com/reference/android/app/Fragment.html#hashCode())()`

**This function is deprecated.**
`java-static https://developer.android.com/reference/android/app/Fragment.html!` `[instantiate](https://developer.android.com/reference/android/app/Fragment.html#instantiate(android.content.Context, java.lang.String))(context: https://developer.android.com/reference/android/content/Context.html!, fname: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!)`

**This function is deprecated.**
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` `[isAdded](https://developer.android.com/reference/android/app/Fragment.html#isAdded())()`

**This function is deprecated.**
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` `[isDetached](https://developer.android.com/reference/android/app/Fragment.html#isDetached())()`

**This function is deprecated.**
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` `[isHidden](https://developer.android.com/reference/android/app/Fragment.html#isHidden())()`

**This function is deprecated.**
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` `[isInLayout](https://developer.android.com/reference/android/app/Fragment.html#isInLayout())()`

**This function is deprecated.**
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` `[isRemoving](https://developer.android.com/reference/android/app/Fragment.html#isRemoving())()`

**This function is deprecated.**
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` `[isResumed](https://developer.android.com/reference/android/app/Fragment.html#isResumed())()`

**This function is deprecated.**
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` `[isStateSaved](https://developer.android.com/reference/android/app/Fragment.html#isStateSaved())()`

**This function is deprecated.**
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` `[isVisible](https://developer.android.com/reference/android/app/Fragment.html#isVisible())()`

**This function is deprecated.**
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `[onActivityCreated](https://developer.android.com/reference/android/app/Fragment.html#onActivityCreated(android.os.Bundle))(savedInstanceState: https://developer.android.com/reference/android/os/Bundle.html!)`

**This function is deprecated.**
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `[onActivityResult](https://developer.android.com/reference/android/app/Fragment.html#onActivityResult(int, int, android.content.Intent))(requestCode: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, resultCode: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, data: https://developer.android.com/reference/android/content/Intent.html!)`

**This function is deprecated.**
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `[onAttach](https://developer.android.com/reference/android/app/Fragment.html#onAttach(android.app.Activity))(activity: https://developer.android.com/reference/android/app/Activity.html!)`

**This function is deprecated.**
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `[onAttachFragment](https://developer.android.com/reference/android/app/Fragment.html#onAttachFragment(android.app.Fragment))(childFragment: https://developer.android.com/reference/android/app/Fragment.html!)`

**This function is deprecated.**
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `[onConfigurationChanged](https://developer.android.com/reference/android/app/Fragment.html#onConfigurationChanged(android.content.res.Configuration))(newConfig: https://developer.android.com/reference/android/content/res/Configuration.html!)`

**This function is deprecated.**
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` `[onContextItemSelected](https://developer.android.com/reference/android/app/Fragment.html#onContextItemSelected(android.view.MenuItem))(item: https://developer.android.com/reference/android/view/MenuItem.html!)`

**This function is deprecated.**
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `[onCreate](https://developer.android.com/reference/android/app/Fragment.html#onCreate(android.os.Bundle))(savedInstanceState: https://developer.android.com/reference/android/os/Bundle.html!)`

**This function is deprecated.**
`https://developer.android.com/reference/android/animation/Animator.html!` `[onCreateAnimator](https://developer.android.com/reference/android/app/Fragment.html#onCreateAnimator(int, boolean, int))(transit: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, enter: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html, nextAnim: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`

**This function is deprecated.**
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `[onCreateContextMenu](https://developer.android.com/reference/android/app/Fragment.html#onCreateContextMenu(android.view.ContextMenu, android.view.View, android.view.ContextMenu.ContextMenuInfo))(
menu: https://developer.android.com/reference/android/view/ContextMenu.html!,
v: https://developer.android.com/reference/android/view/View.html!,
menuInfo: https://developer.android.com/reference/android/view/ContextMenu.ContextMenuInfo.html!
)`

**This function is deprecated.**
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `[onCreateOptionsMenu](https://developer.android.com/reference/android/app/Fragment.html#onCreateOptionsMenu(android.view.Menu, android.view.MenuInflater))(menu: https://developer.android.com/reference/android/view/Menu.html!, inflater: https://developer.android.com/reference/android/view/MenuInflater.html!)`

**This function is deprecated.**
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `[onDestroyOptionsMenu](https://developer.android.com/reference/android/app/Fragment.html#onDestroyOptionsMenu())()`

**This function is deprecated.**
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `[onDestroyView](https://developer.android.com/reference/android/app/Fragment.html#onDestroyView())()`

**This function is deprecated.**
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `[onDetach](https://developer.android.com/reference/android/app/Fragment.html#onDetach())()`

**This function is deprecated.**
`https://developer.android.com/reference/android/view/LayoutInflater.html!` `[onGetLayoutInflater](https://developer.android.com/reference/android/app/Fragment.html#onGetLayoutInflater(android.os.Bundle))(savedInstanceState: https://developer.android.com/reference/android/os/Bundle.html!)`

**This function is deprecated.**
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `[onHiddenChanged](https://developer.android.com/reference/android/app/Fragment.html#onHiddenChanged(boolean))(hidden: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)`

**This function is deprecated.**
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `[onInflate](https://developer.android.com/reference/android/app/Fragment.html#onInflate(android.app.Activity, android.util.AttributeSet, android.os.Bundle))(
activity: https://developer.android.com/reference/android/app/Activity.html!,
attrs: https://developer.android.com/reference/android/util/AttributeSet.html!,
savedInstanceState: https://developer.android.com/reference/android/os/Bundle.html!
)`

**This function is deprecated.**
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `[onLowMemory](https://developer.android.com/reference/android/app/Fragment.html#onLowMemory())()`

**This function is deprecated.**
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `[onMultiWindowModeChanged](https://developer.android.com/reference/android/app/Fragment.html#onMultiWindowModeChanged(boolean))(isInMultiWindowMode: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)`

**This function is deprecated.**
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` `[onOptionsItemSelected](https://developer.android.com/reference/android/app/Fragment.html#onOptionsItemSelected(android.view.MenuItem))(item: https://developer.android.com/reference/android/view/MenuItem.html!)`

**This function is deprecated.**
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `[onOptionsMenuClosed](https://developer.android.com/reference/android/app/Fragment.html#onOptionsMenuClosed(android.view.Menu))(menu: https://developer.android.com/reference/android/view/Menu.html!)`

**This function is deprecated.**
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `[onPause](https://developer.android.com/reference/android/app/Fragment.html#onPause())()`

**This function is deprecated.**
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `[onPictureInPictureModeChanged](https://developer.android.com/reference/android/app/Fragment.html#onPictureInPictureModeChanged(boolean))(isInPictureInPictureMode: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)`

**This function is deprecated.**
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `[onPrepareOptionsMenu](https://developer.android.com/reference/android/app/Fragment.html#onPrepareOptionsMenu(android.view.Menu))(menu: https://developer.android.com/reference/android/view/Menu.html!)`

**This function is deprecated.**
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `[onRequestPermissionsResult](https://developer.android.com/reference/android/app/Fragment.html#onRequestPermissionsResult(int, java.lang.String[], int[]))(
requestCode: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html,
permissions: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-array/index.html<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!>!,
grantResults: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int-array/index.html<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html>!
)`

**This function is deprecated.**
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `[onResume](https://developer.android.com/reference/android/app/Fragment.html#onResume())()`

**This function is deprecated.**
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `[onSaveInstanceState](https://developer.android.com/reference/android/app/Fragment.html#onSaveInstanceState(android.os.Bundle))(outState: https://developer.android.com/reference/android/os/Bundle.html!)`

**This function is deprecated.**
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `[onStart](https://developer.android.com/reference/android/app/Fragment.html#onStart())()`

**This function is deprecated.**
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `[onTrimMemory](https://developer.android.com/reference/android/app/Fragment.html#onTrimMemory(int))(level: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`

**This function is deprecated.**
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `[onViewCreated](https://developer.android.com/reference/android/app/Fragment.html#onViewCreated(android.view.View, android.os.Bundle))(view: https://developer.android.com/reference/android/view/View.html!, savedInstanceState: https://developer.android.com/reference/android/os/Bundle.html!)`

**This function is deprecated.**
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `[onViewStateRestored](https://developer.android.com/reference/android/app/Fragment.html#onViewStateRestored(android.os.Bundle))(savedInstanceState: https://developer.android.com/reference/android/os/Bundle.html!)`

**This function is deprecated.**
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `[postponeEnterTransition](https://developer.android.com/reference/android/app/Fragment.html#postponeEnterTransition())()`

**This function is deprecated.**
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `[registerForContextMenu](https://developer.android.com/reference/android/app/Fragment.html#registerForContextMenu(android.view.View))(view: https://developer.android.com/reference/android/view/View.html!)`

**This function is deprecated.**
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `[requestPermissions](https://developer.android.com/reference/android/app/Fragment.html#requestPermissions(java.lang.String[], int))(permissions: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-array/index.html<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!>!, requestCode: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`

**This function is deprecated.**
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `[setAllowEnterTransitionOverlap](https://developer.android.com/reference/android/app/Fragment.html#setAllowEnterTransitionOverlap(boolean))(allow: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)`

**This function is deprecated.**
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `[setAllowReturnTransitionOverlap](https://developer.android.com/reference/android/app/Fragment.html#setAllowReturnTransitionOverlap(boolean))(allow: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)`

**This function is deprecated.**
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `[setArguments](https://developer.android.com/reference/android/app/Fragment.html#setArguments(android.os.Bundle))(args: https://developer.android.com/reference/android/os/Bundle.html!)`

**This function is deprecated.**
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `[setEnterSharedElementCallback](https://developer.android.com/reference/android/app/Fragment.html#setEnterSharedElementCallback(android.app.SharedElementCallback))(callback: https://developer.android.com/reference/android/app/SharedElementCallback.html!)`

**This function is deprecated.**
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `[setEnterTransition](https://developer.android.com/reference/android/app/Fragment.html#setEnterTransition(android.transition.Transition))(transition: https://developer.android.com/reference/android/transition/Transition.html!)`

**This function is deprecated.**
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `[setExitSharedElementCallback](https://developer.android.com/reference/android/app/Fragment.html#setExitSharedElementCallback(android.app.SharedElementCallback))(callback: https://developer.android.com/reference/android/app/SharedElementCallback.html!)`

**This function is deprecated.**
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `[setExitTransition](https://developer.android.com/reference/android/app/Fragment.html#setExitTransition(android.transition.Transition))(transition: https://developer.android.com/reference/android/transition/Transition.html!)`

**This function is deprecated.**
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `[setHasOptionsMenu](https://developer.android.com/reference/android/app/Fragment.html#setHasOptionsMenu(boolean))(hasMenu: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)`

**This function is deprecated.**
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `[setInitialSavedState](https://developer.android.com/reference/android/app/Fragment.html#setInitialSavedState(android.app.Fragment.SavedState))(state: https://developer.android.com/reference/android/app/Fragment.SavedState.html!)`

**This function is deprecated.**
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `[setMenuVisibility](https://developer.android.com/reference/android/app/Fragment.html#setMenuVisibility(boolean))(menuVisible: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)`

**This function is deprecated.**
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `[setReenterTransition](https://developer.android.com/reference/android/app/Fragment.html#setReenterTransition(android.transition.Transition))(transition: https://developer.android.com/reference/android/transition/Transition.html!)`

**This function is deprecated.**
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `[setRetainInstance](https://developer.android.com/reference/android/app/Fragment.html#setRetainInstance(boolean))(retain: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)`

**This function is deprecated.**
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `[setReturnTransition](https://developer.android.com/reference/android/app/Fragment.html#setReturnTransition(android.transition.Transition))(transition: https://developer.android.com/reference/android/transition/Transition.html!)`

**This function is deprecated.**
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `[setSharedElementEnterTransition](https://developer.android.com/reference/android/app/Fragment.html#setSharedElementEnterTransition(android.transition.Transition))(transition: https://developer.android.com/reference/android/transition/Transition.html!)`

**This function is deprecated.**
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `[setSharedElementReturnTransition](https://developer.android.com/reference/android/app/Fragment.html#setSharedElementReturnTransition(android.transition.Transition))(transition: https://developer.android.com/reference/android/transition/Transition.html!)`

**This function is deprecated.**
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `[setTargetFragment](https://developer.android.com/reference/android/app/Fragment.html#setTargetFragment(android.app.Fragment, int))(fragment: https://developer.android.com/reference/android/app/Fragment.html!, requestCode: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`

**This function is deprecated.**
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `[setUserVisibleHint](https://developer.android.com/reference/android/app/Fragment.html#setUserVisibleHint(boolean))(isVisibleToUser: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)`

**This function is deprecated.**
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` `[shouldShowRequestPermissionRationale](https://developer.android.com/reference/android/app/Fragment.html#shouldShowRequestPermissionRationale(java.lang.String))(permission: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!)`

**This function is deprecated.**
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `[startActivity](https://developer.android.com/reference/android/app/Fragment.html#startActivity(android.content.Intent))(intent: https://developer.android.com/reference/android/content/Intent.html!)`

**This function is deprecated.**
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `[startActivityForResult](https://developer.android.com/reference/android/app/Fragment.html#startActivityForResult(android.content.Intent, int))(intent: https://developer.android.com/reference/android/content/Intent.html!, requestCode: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`

**This function is deprecated.**
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `[startIntentSenderForResult](https://developer.android.com/reference/android/app/Fragment.html#startIntentSenderForResult(android.content.IntentSender, int, android.content.Intent, int, int, int, android.os.Bundle))(
intent: https://developer.android.com/reference/android/content/IntentSender.html!,
requestCode: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html,
fillInIntent: https://developer.android.com/reference/android/content/Intent.html!,
flagsMask: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html,
flagsValues: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html,
extraFlags: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html,
options: https://developer.android.com/reference/android/os/Bundle.html!
)`

**This function is deprecated.**
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `[startPostponedEnterTransition](https://developer.android.com/reference/android/app/Fragment.html#startPostponedEnterTransition())()`

**This function is deprecated.**
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` `[toString](https://developer.android.com/reference/android/app/Fragment.html#toString())()`

**This function is deprecated.**
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `[unregisterForContextMenu](https://developer.android.com/reference/android/app/Fragment.html#unregisterForContextMenu(android.view.View))(view: https://developer.android.com/reference/android/view/View.html!)`

**This function is deprecated.**

## Constants

### HEADERS_DISABLED

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

```
const val HEADERS_DISABLED = 3: Int
```

> [!CAUTION]
> **This property is deprecated.**   
> Deprecated in Java

The headers fragment is disabled and will never be shown.

### HEADERS_ENABLED

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

```
const val HEADERS_ENABLED = 1: Int
```

> [!CAUTION]
> **This property is deprecated.**   
> Deprecated in Java

The headers fragment is enabled and shown by default.

### HEADERS_HIDDEN

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

```
const val HEADERS_HIDDEN = 2: Int
```

> [!CAUTION]
> **This property is deprecated.**   
> Deprecated in Java

The headers fragment is enabled and hidden by default.

## Public constructors

### BrowseFragment

Added in 1.1.0 Deprecated in 1.1.0

```
[BrowseFragment](https://developer.android.com/reference/kotlin/androidx/leanback/app/BrowseFragment#BrowseFragment())()
```

> [!CAUTION]
> **This function is deprecated.**   
> Deprecated in Java

## Public functions

### createArgs

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

```
java-static fun [createArgs](https://developer.android.com/reference/kotlin/androidx/leanback/app/BrowseFragment#createArgs(android.os.Bundle,java.lang.String,int))(args: Bundle!, title: String!, headersState: Int): Bundle!
```

> [!CAUTION]
> **This function is deprecated.**   
> Deprecated in Java

Creates arguments for a browse fragment.

| Parameters |
|---|---|
| `args: https://developer.android.com/reference/android/os/Bundle.html!` | The Bundle to place arguments into, or null if the method should return a new Bundle. |
| `title: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` | The title of the BrowseFragment. |
| `headersState: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | The initial state of the headers of the BrowseFragment. Must be one of `https://developer.android.com/reference/kotlin/androidx/leanback/app/BrowseFragment#HEADERS_ENABLED()`, `https://developer.android.com/reference/kotlin/androidx/leanback/app/BrowseFragment#HEADERS_HIDDEN()`, or `https://developer.android.com/reference/kotlin/androidx/leanback/app/BrowseFragment#HEADERS_DISABLED()`. |

| Returns |
|---|---|
| `https://developer.android.com/reference/android/os/Bundle.html!` | A Bundle with the given arguments for creating a BrowseFragment. |

### enableMainFragmentScaling

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

```
fun [enableMainFragmentScaling](https://developer.android.com/reference/kotlin/androidx/leanback/app/BrowseFragment#enableMainFragmentScaling(boolean))(enable: Boolean): Unit
```

> [!CAUTION]
> **This function is deprecated.**   
> Deprecated in Java

Enables scaling of main fragment when headers are present. For the page/row fragment, scaling is enabled only when both this method and `https://developer.android.com/reference/kotlin/androidx/leanback/app/BrowseFragment.MainFragmentAdapter#isScalingEnabled()` are enabled.

| Parameters |
|---|---|
| `enable: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | true to enable row scaling |

### enableRowScaling

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

```
fun [enableRowScaling](https://developer.android.com/reference/kotlin/androidx/leanback/app/BrowseFragment#enableRowScaling(boolean))(enable: Boolean): Unit
```

> [!CAUTION]
> **This function is deprecated.**   
>
> use `https://developer.android.com/reference/kotlin/androidx/leanback/app/BrowseFragment#enableMainFragmentScaling(boolean)` instead.

| Parameters |
|---|---|
| `enable: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | true to enable row scaling |

### getAdapter

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

```
fun [getAdapter](https://developer.android.com/reference/kotlin/androidx/leanback/app/BrowseFragment#getAdapter())(): ObjectAdapter!
```

> [!CAUTION]
> **This function is deprecated.**   
> Deprecated in Java

Returns the adapter containing the rows for the fragment.

### getBrandColor

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

```
fun [getBrandColor](https://developer.android.com/reference/kotlin/androidx/leanback/app/BrowseFragment#getBrandColor())(): @ColorInt Int
```

> [!CAUTION]
> **This function is deprecated.**   
> Deprecated in Java

Returns the brand color for the browse fragment. The default is transparent.

### getHeadersFragment

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

```
fun [getHeadersFragment](https://developer.android.com/reference/kotlin/androidx/leanback/app/BrowseFragment#getHeadersFragment())(): HeadersFragment!
```

> [!CAUTION]
> **This function is deprecated.**   
> Deprecated in Java

Get currently bound HeadersFragment or null if HeadersFragment has not been created yet.

| Returns |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/leanback/app/HeadersFragment!` | Currently bound HeadersFragment or null if HeadersFragment has not been created yet. |

### getHeadersState

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

```
fun [getHeadersState](https://developer.android.com/reference/kotlin/androidx/leanback/app/BrowseFragment#getHeadersState())(): Int
```

> [!CAUTION]
> **This function is deprecated.**   
> Deprecated in Java

Returns the state of the headers column in the browse fragment.

### getMainFragment

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

```
fun [getMainFragment](https://developer.android.com/reference/kotlin/androidx/leanback/app/BrowseFragment#getMainFragment())(): Fragment!
```

> [!CAUTION]
> **This function is deprecated.**   
> Deprecated in Java

| Returns |
|---|---|
| `https://developer.android.com/reference/android/app/Fragment.html!` | Current main fragment or null if not created. |

### getMainFragmentRegistry

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

```
fun [getMainFragmentRegistry](https://developer.android.com/reference/kotlin/androidx/leanback/app/BrowseFragment#getMainFragmentRegistry())(): BrowseFragment.MainFragmentAdapterRegistry!
```

> [!CAUTION]
> **This function is deprecated.**   
> Deprecated in Java

### getOnItemViewClickedListener

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

```
fun [getOnItemViewClickedListener](https://developer.android.com/reference/kotlin/androidx/leanback/app/BrowseFragment#getOnItemViewClickedListener())(): OnItemViewClickedListener!
```

> [!CAUTION]
> **This function is deprecated.**   
> Deprecated in Java

Returns the item Clicked listener.

### getOnItemViewSelectedListener

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

```
fun [getOnItemViewSelectedListener](https://developer.android.com/reference/kotlin/androidx/leanback/app/BrowseFragment#getOnItemViewSelectedListener())(): OnItemViewSelectedListener!
```

> [!CAUTION]
> **This function is deprecated.**   
> Deprecated in Java

Returns an item selection listener.

### getRowsFragment

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

```
fun [getRowsFragment](https://developer.android.com/reference/kotlin/androidx/leanback/app/BrowseFragment#getRowsFragment())(): RowsFragment!
```

> [!CAUTION]
> **This function is deprecated.**   
> Deprecated in Java

Get RowsFragment if it's bound to BrowseFragment or null if either BrowseFragment has not been created yet or a different fragment is bound to it.

| Returns |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/leanback/app/RowsFragment!` | RowsFragment if it's bound to BrowseFragment or null otherwise. |

### getSelectedPosition

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

```
fun [getSelectedPosition](https://developer.android.com/reference/kotlin/androidx/leanback/app/BrowseFragment#getSelectedPosition())(): Int
```

> [!CAUTION]
> **This function is deprecated.**   
> Deprecated in Java

Gets position of currently selected row.

| Returns |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | Position of currently selected row. |

### getSelectedRowViewHolder

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

```
fun [getSelectedRowViewHolder](https://developer.android.com/reference/kotlin/androidx/leanback/app/BrowseFragment#getSelectedRowViewHolder())(): RowPresenter.ViewHolder!
```

> [!CAUTION]
> **This function is deprecated.**   
> Deprecated in Java

| Returns |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/leanback/widget/RowPresenter.ViewHolder!` | selected row ViewHolder inside fragment created by `https://developer.android.com/reference/kotlin/androidx/leanback/app/BrowseFragment.MainFragmentRowsAdapter`. |

### isHeadersTransitionOnBackEnabled

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

```
fun [isHeadersTransitionOnBackEnabled](https://developer.android.com/reference/kotlin/androidx/leanback/app/BrowseFragment#isHeadersTransitionOnBackEnabled())(): Boolean
```

> [!CAUTION]
> **This function is deprecated.**   
> Deprecated in Java

Returns true if headers transition on back key support is enabled.

### isInHeadersTransition

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

```
fun [isInHeadersTransition](https://developer.android.com/reference/kotlin/androidx/leanback/app/BrowseFragment#isInHeadersTransition())(): Boolean
```

> [!CAUTION]
> **This function is deprecated.**   
> Deprecated in Java

Returns true if the headers transition is currently running.

### isShowingHeaders

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

```
fun [isShowingHeaders](https://developer.android.com/reference/kotlin/androidx/leanback/app/BrowseFragment#isShowingHeaders())(): Boolean
```

> [!CAUTION]
> **This function is deprecated.**   
> Deprecated in Java

Returns true if headers are shown.

### onCreate

```
fun [onCreate](https://developer.android.com/reference/kotlin/androidx/leanback/app/BrowseFragment#onCreate(android.os.Bundle))(savedInstanceState: Bundle!): Unit
```

> [!CAUTION]
> **This function is deprecated.**   

### onCreateHeadersFragment

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

```
fun [onCreateHeadersFragment](https://developer.android.com/reference/kotlin/androidx/leanback/app/BrowseFragment#onCreateHeadersFragment())(): HeadersFragment!
```

> [!CAUTION]
> **This function is deprecated.**   
> Deprecated in Java

Creates a new `https://developer.android.com/reference/kotlin/androidx/leanback/app/HeadersFragment` instance. Subclass of BrowseFragment may override and return an instance of subclass of HeadersFragment, e.g. when app wants to replace presenter to render HeaderItem.

| Returns |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/leanback/app/HeadersFragment!` | A new instance of `https://developer.android.com/reference/kotlin/androidx/leanback/app/HeadersFragment` or its subclass. |

### onCreateView

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

```
fun [onCreateView](https://developer.android.com/reference/kotlin/androidx/leanback/app/BrowseFragment#onCreateView(android.view.LayoutInflater,android.view.ViewGroup,android.os.Bundle))(
    inflater: LayoutInflater!,
    container: ViewGroup?,
    savedInstanceState: Bundle!
): View?
```

> [!CAUTION]
> **This function is deprecated.**   

### onDestroy

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

```
fun [onDestroy](https://developer.android.com/reference/kotlin/androidx/leanback/app/BrowseFragment#onDestroy())(): Unit
```

> [!CAUTION]
> **This function is deprecated.**   

### onDestroyView

```
fun [onDestroyView](https://developer.android.com/reference/kotlin/androidx/leanback/app/BrowseFragment#onDestroyView())(): Unit
```

> [!CAUTION]
> **This function is deprecated.**   

### onSaveInstanceState

```
fun [onSaveInstanceState](https://developer.android.com/reference/kotlin/androidx/leanback/app/BrowseFragment#onSaveInstanceState(android.os.Bundle))(outState: Bundle!): Unit
```

> [!CAUTION]
> **This function is deprecated.**   

### onStart

```
fun [onStart](https://developer.android.com/reference/kotlin/androidx/leanback/app/BrowseFragment#onStart())(): Unit
```

> [!CAUTION]
> **This function is deprecated.**   

### onStop

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

```
fun [onStop](https://developer.android.com/reference/kotlin/androidx/leanback/app/BrowseFragment#onStop())(): Unit
```

> [!CAUTION]
> **This function is deprecated.**   

### setAdapter

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

```
fun [setAdapter](https://developer.android.com/reference/kotlin/androidx/leanback/app/BrowseFragment#setAdapter(androidx.leanback.widget.ObjectAdapter))(adapter: ObjectAdapter!): Unit
```

> [!CAUTION]
> **This function is deprecated.**   
> Deprecated in Java

Sets the adapter containing the rows for the fragment.

The items referenced by the adapter must be be derived from `https://developer.android.com/reference/kotlin/androidx/leanback/widget/Row`. These rows will be used by the rows fragment and the headers fragment (if not disabled) to render the browse rows.

| Parameters |
|---|---|
| `adapter: https://developer.android.com/reference/kotlin/androidx/leanback/widget/ObjectAdapter!` | An ObjectAdapter for the browse rows. All items must derive from `https://developer.android.com/reference/kotlin/androidx/leanback/widget/Row`. |

### setBrandColor

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

```
fun [setBrandColor](https://developer.android.com/reference/kotlin/androidx/leanback/app/BrowseFragment#setBrandColor(int))(color: @ColorInt Int): Unit
```

> [!CAUTION]
> **This function is deprecated.**   
> Deprecated in Java

Sets the brand color for the browse fragment. The brand color is used as the primary color for UI elements in the browse fragment. For example, the background color of the headers fragment uses the brand color.

| Parameters |
|---|---|
| `color: @https://developer.android.com/reference/kotlin/androidx/annotation/ColorInt https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | The color to use as the brand color of the fragment. |

### setBrowseTransitionListener

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

```
fun [setBrowseTransitionListener](https://developer.android.com/reference/kotlin/androidx/leanback/app/BrowseFragment#setBrowseTransitionListener(androidx.leanback.app.BrowseFragment.BrowseTransitionListener))(
    listener: BrowseFragment.BrowseTransitionListener!
): Unit
```

> [!CAUTION]
> **This function is deprecated.**   
> Deprecated in Java

Sets a listener for browse fragment transitions.

| Parameters |
|---|---|
| `listener: https://developer.android.com/reference/kotlin/androidx/leanback/app/BrowseFragment.BrowseTransitionListener!` | The listener to call when a browse headers transition begins or ends. |

### setHeaderPresenterSelector

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

```
fun [setHeaderPresenterSelector](https://developer.android.com/reference/kotlin/androidx/leanback/app/BrowseFragment#setHeaderPresenterSelector(androidx.leanback.widget.PresenterSelector))(headerPresenterSelector: PresenterSelector!): Unit
```

> [!CAUTION]
> **This function is deprecated.**   
> Deprecated in Java

Sets the `https://developer.android.com/reference/kotlin/androidx/leanback/widget/PresenterSelector` used to render the row headers.

| Parameters |
|---|---|
| `headerPresenterSelector: https://developer.android.com/reference/kotlin/androidx/leanback/widget/PresenterSelector!` | The PresenterSelector that will determine the Presenter for each row header. |

### setHeadersState

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

```
fun [setHeadersState](https://developer.android.com/reference/kotlin/androidx/leanback/app/BrowseFragment#setHeadersState(int))(headersState: Int): Unit
```

> [!CAUTION]
> **This function is deprecated.**   
> Deprecated in Java

Sets the state for the headers column in the browse fragment. Must be one of `https://developer.android.com/reference/kotlin/androidx/leanback/app/BrowseFragment#HEADERS_ENABLED()`, `https://developer.android.com/reference/kotlin/androidx/leanback/app/BrowseFragment#HEADERS_HIDDEN()`, or `https://developer.android.com/reference/kotlin/androidx/leanback/app/BrowseFragment#HEADERS_DISABLED()`.

| Parameters |
|---|---|
| `headersState: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | The state of the headers for the browse fragment. |

### setHeadersTransitionOnBackEnabled

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

```
fun [setHeadersTransitionOnBackEnabled](https://developer.android.com/reference/kotlin/androidx/leanback/app/BrowseFragment#setHeadersTransitionOnBackEnabled(boolean))(headersBackStackEnabled: Boolean): Unit
```

> [!CAUTION]
> **This function is deprecated.**   
> Deprecated in Java

Enables/disables headers transition on back key support. This is enabled by default. The BrowseFragment will add a back stack entry when headers are showing. Running a headers transition when the back key is pressed only works when the headers state is `https://developer.android.com/reference/kotlin/androidx/leanback/app/BrowseFragment#HEADERS_ENABLED()` or `https://developer.android.com/reference/kotlin/androidx/leanback/app/BrowseFragment#HEADERS_HIDDEN()`.

NOTE: If an Activity has its own onBackPressed() handling, you must disable this feature. You may use `https://developer.android.com/reference/kotlin/androidx/leanback/app/BrowseFragment#startHeadersTransition(boolean)` and `https://developer.android.com/reference/kotlin/androidx/leanback/app/BrowseFragment.BrowseTransitionListener` in your own back stack handling.

### setOnItemViewClickedListener

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

```
fun [setOnItemViewClickedListener](https://developer.android.com/reference/kotlin/androidx/leanback/app/BrowseFragment#setOnItemViewClickedListener(androidx.leanback.widget.OnItemViewClickedListener))(listener: OnItemViewClickedListener!): Unit
```

> [!CAUTION]
> **This function is deprecated.**   
> Deprecated in Java

Sets an item clicked listener on the fragment. OnItemViewClickedListener will override `https://developer.android.com/reference/android/view/View.OnClickListener.html` that item presenter sets during `https://developer.android.com/reference/kotlin/androidx/leanback/widget/Presenter#onCreateViewHolder(android.view.ViewGroup)`. So in general, developer should choose one of the listeners but not both.

### setOnItemViewSelectedListener

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

```
fun [setOnItemViewSelectedListener](https://developer.android.com/reference/kotlin/androidx/leanback/app/BrowseFragment#setOnItemViewSelectedListener(androidx.leanback.widget.OnItemViewSelectedListener))(listener: OnItemViewSelectedListener!): Unit
```

> [!CAUTION]
> **This function is deprecated.**   
> Deprecated in Java

Sets an item selection listener.

### setSelectedPosition

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

```
fun [setSelectedPosition](https://developer.android.com/reference/kotlin/androidx/leanback/app/BrowseFragment#setSelectedPosition(int))(position: Int): Unit
```

> [!CAUTION]
> **This function is deprecated.**   
> Deprecated in Java

Sets the selected row position with smooth animation.

### setSelectedPosition

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

```
fun [setSelectedPosition](https://developer.android.com/reference/kotlin/androidx/leanback/app/BrowseFragment#setSelectedPosition(int,boolean))(position: Int, smooth: Boolean): Unit
```

> [!CAUTION]
> **This function is deprecated.**   
> Deprecated in Java

Sets the selected row position.

### setSelectedPosition

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

```
fun [setSelectedPosition](https://developer.android.com/reference/kotlin/androidx/leanback/app/BrowseFragment#setSelectedPosition(int,boolean,androidx.leanback.widget.Presenter.ViewHolderTask))(
    rowPosition: Int,
    smooth: Boolean,
    rowHolderTask: Presenter.ViewHolderTask!
): Unit
```

> [!CAUTION]
> **This function is deprecated.**   
> Deprecated in Java

Selects a Row and perform an optional task on the Row. For example `setSelectedPosition(10, true, new ListRowPresenterSelectItemViewHolderTask(5))` scrolls to 11th row and selects 6th item on that row. The method will be ignored if RowsFragment has not been created (i.e. before `https://developer.android.com/reference/kotlin/androidx/leanback/app/BrowseFragment#onCreateView(android.view.LayoutInflater,android.view.ViewGroup,android.os.Bundle)`).

| Parameters |
|---|---|
| `rowPosition: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | Which row to select. |
| `smooth: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | True to scroll to the row, false for no animation. |
| `rowHolderTask: https://developer.android.com/reference/kotlin/androidx/leanback/widget/Presenter.ViewHolderTask!` | Optional task to perform on the Row. When the task is not null, headers fragment will be collapsed. |

### startHeadersTransition

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

```
fun [startHeadersTransition](https://developer.android.com/reference/kotlin/androidx/leanback/app/BrowseFragment#startHeadersTransition(boolean))(withHeaders: Boolean): Unit
```

> [!CAUTION]
> **This function is deprecated.**   
> Deprecated in Java

Starts a headers transition.

This method will begin a transition to either show or hide the headers, depending on the value of withHeaders. If headers are disabled for this browse fragment, this method will throw an exception.

| Parameters |
|---|---|
| `withHeaders: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | True if the headers should transition to being shown, false if the transition should result in headers being hidden. |

## Protected functions

### createEntranceTransition

```
protected fun [createEntranceTransition](https://developer.android.com/reference/kotlin/androidx/leanback/app/BrowseFragment#createEntranceTransition())(): Any!
```

> [!CAUTION]
> **This function is deprecated.**   
> Deprecated in Java

Create entrance transition. Subclass can override to load transition from resource or construct manually. Typically app does not need to override the default transition that browse and details provides.

### onEntranceTransitionEnd

```
protected fun [onEntranceTransitionEnd](https://developer.android.com/reference/kotlin/androidx/leanback/app/BrowseFragment#onEntranceTransitionEnd())(): Unit
```

> [!CAUTION]
> **This function is deprecated.**   
> Deprecated in Java

Callback when entrance transition is ended.

### onEntranceTransitionPrepare

```
protected fun [onEntranceTransitionPrepare](https://developer.android.com/reference/kotlin/androidx/leanback/app/BrowseFragment#onEntranceTransitionPrepare())(): Unit
```

> [!CAUTION]
> **This function is deprecated.**   
> Deprecated in Java

Callback when entrance transition is prepared. This is when fragment should stop user input and animations.

### onEntranceTransitionStart

```
protected fun [onEntranceTransitionStart](https://developer.android.com/reference/kotlin/androidx/leanback/app/BrowseFragment#onEntranceTransitionStart())(): Unit
```

> [!CAUTION]
> **This function is deprecated.**   
> Deprecated in Java

Callback when entrance transition is started. This is when fragment should stop processing layout.

### runEntranceTransition

```
protected fun [runEntranceTransition](https://developer.android.com/reference/kotlin/androidx/leanback/app/BrowseFragment#runEntranceTransition(java.lang.Object))(entranceTransition: Any!): Unit
```

> [!CAUTION]
> **This function is deprecated.**   
> Deprecated in Java

Run entrance transition. Subclass may use TransitionManager to perform go(Scene) or beginDelayedTransition(). App should not override the default implementation of browse and details fragment.