# OnboardingFragment

Artifact: [androidx.leanback:leanback](https://developer.android.com/jetpack/androidx/releases/leanback) [View Source](https://cs.android.com/search?q=file:androidx/leanback/app/OnboardingFragment.java+class:androidx.leanback.app.OnboardingFragment) 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)

*** ** * ** ***


```
abstract class OnboardingFragment : Fragment
```

<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.OnboardingFragment](https://developer.android.com/reference/kotlin/androidx/leanback/app/OnboardingFragment) |

*** ** * ** ***

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

An OnboardingFragment provides a common and simple way to build onboarding screen for applications.

### Building the screen

The view structure of onboarding screen is composed of the common parts and custom parts. The common parts are composed of icon, title, description and page navigator and the custom parts are composed of background, contents and foreground.

To build the screen views, the inherited class should override:

- `https://developer.android.com/reference/kotlin/androidx/leanback/app/OnboardingFragment#onCreateBackgroundView(android.view.LayoutInflater,android.view.ViewGroup)` to provide the background view. Background view has the same size as the screen and the lowest z-order.
- `https://developer.android.com/reference/kotlin/androidx/leanback/app/OnboardingFragment#onCreateContentView(android.view.LayoutInflater,android.view.ViewGroup)` to provide the contents view. The content view is located in the content area at the center of the screen.
- `https://developer.android.com/reference/kotlin/androidx/leanback/app/OnboardingFragment#onCreateForegroundView(android.view.LayoutInflater,android.view.ViewGroup)` to provide the foreground view. Foreground view has the same size as the screen and the highest z-order

Each of these methods can return `null` if the application doesn't want to provide it.

### Page information

The onboarding screen may have several pages which explain the functionality of the application. The inherited class should provide the page information by overriding the methods:

- `https://developer.android.com/reference/kotlin/androidx/leanback/app/OnboardingFragment#getPageCount()` to provide the number of pages.
- `https://developer.android.com/reference/kotlin/androidx/leanback/app/OnboardingFragment#getPageTitle(int)` to provide the title of the page.
- `https://developer.android.com/reference/kotlin/androidx/leanback/app/OnboardingFragment#getPageDescription(int)` to provide the description of the page.

Note that the information is used in `https://developer.android.com/reference/kotlin/androidx/leanback/app/OnboardingFragment#onCreateView(android.view.LayoutInflater,android.view.ViewGroup,android.os.Bundle)`, so should be initialized before calling `super.onCreateView`.

### Animation

Onboarding screen has three kinds of animations:

#### Logo Splash Animation

When onboarding screen appears, the logo splash animation is played by default. The animation fades in the logo image, pauses in a few seconds and fades it out.

In most cases, the logo animation needs to be customized because the logo images of applications are different from each other, or some applications may want to show their own animations.

The logo animation can be customized in two ways:

- The simplest way is to provide the logo image by calling `https://developer.android.com/reference/kotlin/androidx/leanback/app/OnboardingFragment#setLogoResourceId(int)` to show the default logo animation. This method should be called in `https://developer.android.com/reference/android/app/Fragment.html#onCreateView(android.view.LayoutInflater, android.view.ViewGroup, android.os.Bundle)`.
- If the logo animation is complex, then override `https://developer.android.com/reference/kotlin/androidx/leanback/app/OnboardingFragment#onCreateLogoAnimation()` and return the `https://developer.android.com/reference/android/animation/Animator.html` object to run.

If the inherited class provides neither the logo image nor the animation, the logo animation will be omitted.

#### Page enter animation

After logo animation finishes, page enter animation starts, which causes the header section - title and description views to fade and slide in. Users can override the default fade + slide animation by overriding `https://developer.android.com/reference/kotlin/androidx/leanback/app/OnboardingFragment#onCreateTitleAnimator()`\&`https://developer.android.com/reference/kotlin/androidx/leanback/app/OnboardingFragment#onCreateDescriptionAnimator()`. By default we don't animate the custom views but users can provide animation by overriding `https://developer.android.com/reference/kotlin/androidx/leanback/app/OnboardingFragment#onCreateEnterAnimation()`.

#### Page change animation

When the page changes, the default animations of the title and description are played. The inherited class can override `https://developer.android.com/reference/kotlin/androidx/leanback/app/OnboardingFragment#onPageChanged(int,int)` to start the custom animations.

### Finishing the screen

If the user finishes the onboarding screen after navigating all the pages, `https://developer.android.com/reference/kotlin/androidx/leanback/app/OnboardingFragment#onFinishFragment()` is called. The inherited class can override this method to show another fragment or activity, or just remove this fragment.

### Theming

OnboardingFragment must have access to an appropriate theme. Specifically, the fragment must receive , or a theme whose parent is set to that theme. Themes can be provided in one of three ways:

- The simplest way is to set the theme for the host Activity to the Onboarding theme or a theme that derives from it.
- If the Activity already has a theme and setting its parent theme is inconvenient, the existing Activity theme can have an entry added for the attribute . If present, this theme will be used by OnboardingFragment as an overlay to the Activity's theme.
- Finally, custom subclasses of OnboardingFragment may provide a theme through the `https://developer.android.com/reference/kotlin/androidx/leanback/app/OnboardingFragment#onProvideTheme()` method. This can be useful if a subclass is used across multiple Activities.

If the theme is provided in multiple ways, the onProvideTheme override has priority, followed by the Activity's theme. (Themes whose parent theme is already set to the onboarding theme do not need to set the onboardingTheme attribute; if set, it will be ignored.)

## Summary

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

| ### Public functions |
|---|---|
| `@https://developer.android.com/reference/kotlin/androidx/annotation/ColorInt https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `[getArrowBackgroundColor](https://developer.android.com/reference/kotlin/androidx/leanback/app/OnboardingFragment#getArrowBackgroundColor())()` **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` | `[getArrowColor](https://developer.android.com/reference/kotlin/androidx/leanback/app/OnboardingFragment#getArrowColor())()` **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` | `[getDescriptionViewTextColor](https://developer.android.com/reference/kotlin/androidx/leanback/app/OnboardingFragment#getDescriptionViewTextColor())()` **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` | `[getDotBackgroundColor](https://developer.android.com/reference/kotlin/androidx/leanback/app/OnboardingFragment#getDotBackgroundColor())()` **This function is deprecated.** Deprecated in Java |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `[getIconResourceId](https://developer.android.com/reference/kotlin/androidx/leanback/app/OnboardingFragment#getIconResourceId())()` **This function is deprecated.** Deprecated in Java |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `[getLogoResourceId](https://developer.android.com/reference/kotlin/androidx/leanback/app/OnboardingFragment#getLogoResourceId())()` **This function is deprecated.** Deprecated in Java |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-char-sequence/index.html?` | `[getStartButtonText](https://developer.android.com/reference/kotlin/androidx/leanback/app/OnboardingFragment#getStartButtonText())()` **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` | `[getTitleViewTextColor](https://developer.android.com/reference/kotlin/androidx/leanback/app/OnboardingFragment#getTitleViewTextColor())()` **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/OnboardingFragment#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/-int/index.html` | `[onProvideTheme](https://developer.android.com/reference/kotlin/androidx/leanback/app/OnboardingFragment#onProvideTheme())()` **This function is deprecated.** Deprecated in Java |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `[onSaveInstanceState](https://developer.android.com/reference/kotlin/androidx/leanback/app/OnboardingFragment#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` | `[onViewCreated](https://developer.android.com/reference/kotlin/androidx/leanback/app/OnboardingFragment#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` | `[setArrowBackgroundColor](https://developer.android.com/reference/kotlin/androidx/leanback/app/OnboardingFragment#setArrowBackgroundColor(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` | `[setArrowColor](https://developer.android.com/reference/kotlin/androidx/leanback/app/OnboardingFragment#setArrowColor(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` | `[setDescriptionViewTextColor](https://developer.android.com/reference/kotlin/androidx/leanback/app/OnboardingFragment#setDescriptionViewTextColor(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` | `[setDotBackgroundColor](https://developer.android.com/reference/kotlin/androidx/leanback/app/OnboardingFragment#setDotBackgroundColor(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` | `[setIconResouceId](https://developer.android.com/reference/kotlin/androidx/leanback/app/OnboardingFragment#setIconResouceId(int))(resourceId: 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` | `[setLogoResourceId](https://developer.android.com/reference/kotlin/androidx/leanback/app/OnboardingFragment#setLogoResourceId(int))(id: 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` | `[setStartButtonText](https://developer.android.com/reference/kotlin/androidx/leanback/app/OnboardingFragment#setStartButtonText(java.lang.CharSequence))(text: 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` | `[setTitleViewTextColor](https://developer.android.com/reference/kotlin/androidx/leanback/app/OnboardingFragment#setTitleViewTextColor(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 |

| ### Protected functions |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `[getCurrentPageIndex](https://developer.android.com/reference/kotlin/androidx/leanback/app/OnboardingFragment#getCurrentPageIndex())()` **This function is deprecated.** Deprecated in Java |
| `abstract https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `[getPageCount](https://developer.android.com/reference/kotlin/androidx/leanback/app/OnboardingFragment#getPageCount())()` **This function is deprecated.** Deprecated in Java |
| `abstract https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-char-sequence/index.html?` | `[getPageDescription](https://developer.android.com/reference/kotlin/androidx/leanback/app/OnboardingFragment#getPageDescription(int))(pageIndex: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)` **This function is deprecated.** Deprecated in Java |
| `abstract https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-char-sequence/index.html?` | `[getPageTitle](https://developer.android.com/reference/kotlin/androidx/leanback/app/OnboardingFragment#getPageTitle(int))(pageIndex: 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/-boolean/index.html` | `[isLogoAnimationFinished](https://developer.android.com/reference/kotlin/androidx/leanback/app/OnboardingFragment#isLogoAnimationFinished())()` **This function is deprecated.** Deprecated in Java |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `[moveToNextPage](https://developer.android.com/reference/kotlin/androidx/leanback/app/OnboardingFragment#moveToNextPage())()` **This function is deprecated.** Deprecated in Java |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `[moveToPreviousPage](https://developer.android.com/reference/kotlin/androidx/leanback/app/OnboardingFragment#moveToPreviousPage())()` **This function is deprecated.** Deprecated in Java |
| `abstract https://developer.android.com/reference/android/view/View.html?` | `[onCreateBackgroundView](https://developer.android.com/reference/kotlin/androidx/leanback/app/OnboardingFragment#onCreateBackgroundView(android.view.LayoutInflater,android.view.ViewGroup))(inflater: https://developer.android.com/reference/android/view/LayoutInflater.html, container: https://developer.android.com/reference/android/view/ViewGroup.html)` **This function is deprecated.** Deprecated in Java |
| `abstract https://developer.android.com/reference/android/view/View.html?` | `[onCreateContentView](https://developer.android.com/reference/kotlin/androidx/leanback/app/OnboardingFragment#onCreateContentView(android.view.LayoutInflater,android.view.ViewGroup))(inflater: https://developer.android.com/reference/android/view/LayoutInflater.html, container: https://developer.android.com/reference/android/view/ViewGroup.html)` **This function is deprecated.** Deprecated in Java |
| `https://developer.android.com/reference/android/animation/Animator.html` | `[onCreateDescriptionAnimator](https://developer.android.com/reference/kotlin/androidx/leanback/app/OnboardingFragment#onCreateDescriptionAnimator())()` **This function is deprecated.** Deprecated in Java |
| `https://developer.android.com/reference/android/animation/Animator.html?` | `[onCreateEnterAnimation](https://developer.android.com/reference/kotlin/androidx/leanback/app/OnboardingFragment#onCreateEnterAnimation())()` **This function is deprecated.** Deprecated in Java |
| `abstract https://developer.android.com/reference/android/view/View.html?` | `[onCreateForegroundView](https://developer.android.com/reference/kotlin/androidx/leanback/app/OnboardingFragment#onCreateForegroundView(android.view.LayoutInflater,android.view.ViewGroup))(inflater: https://developer.android.com/reference/android/view/LayoutInflater.html, container: https://developer.android.com/reference/android/view/ViewGroup.html)` **This function is deprecated.** Deprecated in Java |
| `https://developer.android.com/reference/android/animation/Animator.html?` | `[onCreateLogoAnimation](https://developer.android.com/reference/kotlin/androidx/leanback/app/OnboardingFragment#onCreateLogoAnimation())()` **This function is deprecated.** Deprecated in Java |
| `https://developer.android.com/reference/android/animation/Animator.html` | `[onCreateTitleAnimator](https://developer.android.com/reference/kotlin/androidx/leanback/app/OnboardingFragment#onCreateTitleAnimator())()` **This function is deprecated.** Deprecated in Java |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `[onFinishFragment](https://developer.android.com/reference/kotlin/androidx/leanback/app/OnboardingFragment#onFinishFragment())()` **This function is deprecated.** Deprecated in Java |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `[onLogoAnimationFinished](https://developer.android.com/reference/kotlin/androidx/leanback/app/OnboardingFragment#onLogoAnimationFinished())()` **This function is deprecated.** Deprecated in Java |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `[onPageChanged](https://developer.android.com/reference/kotlin/androidx/leanback/app/OnboardingFragment#onPageChanged(int,int))(newPage: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, previousPage: 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` | `[startEnterAnimation](https://developer.android.com/reference/kotlin/androidx/leanback/app/OnboardingFragment#startEnterAnimation(boolean))(force: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/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 [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` `[onDestroy](https://developer.android.com/reference/android/app/Fragment.html#onDestroy())()`

**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` `[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` `[onStop](https://developer.android.com/reference/android/app/Fragment.html#onStop())()`

**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` `[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.**

## Public constructors

### OnboardingFragment

Added in 1.1.0 Deprecated in 1.1.0

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

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

## Public functions

### getArrowBackgroundColor

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 [getArrowBackgroundColor](https://developer.android.com/reference/kotlin/androidx/leanback/app/OnboardingFragment#getArrowBackgroundColor())(): @ColorInt Int
```

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

Returns the background color of the arrow if it's set through `https://developer.android.com/reference/kotlin/androidx/leanback/app/OnboardingFragment#setArrowBackgroundColor(int)`. If no color was set, transparent is returned.

### getArrowColor

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 [getArrowColor](https://developer.android.com/reference/kotlin/androidx/leanback/app/OnboardingFragment#getArrowColor())(): @ColorInt Int
```

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

Returns the color of the arrow if it's set through `https://developer.android.com/reference/kotlin/androidx/leanback/app/OnboardingFragment#setArrowColor(int)`. If no color was set, transparent is returned.

### getDescriptionViewTextColor

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 [getDescriptionViewTextColor](https://developer.android.com/reference/kotlin/androidx/leanback/app/OnboardingFragment#getDescriptionViewTextColor())(): @ColorInt Int
```

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

Returns the text color of DescriptionView if it's set through `https://developer.android.com/reference/kotlin/androidx/leanback/app/OnboardingFragment#setDescriptionViewTextColor(int)`. If no color was set, transparent is returned.

### getDotBackgroundColor

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 [getDotBackgroundColor](https://developer.android.com/reference/kotlin/androidx/leanback/app/OnboardingFragment#getDotBackgroundColor())(): @ColorInt Int
```

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

Returns the background color of the dot if it's set through `https://developer.android.com/reference/kotlin/androidx/leanback/app/OnboardingFragment#setDotBackgroundColor(int)`. If no color was set, transparent is returned.

### getIconResourceId

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 [getIconResourceId](https://developer.android.com/reference/kotlin/androidx/leanback/app/OnboardingFragment#getIconResourceId())(): Int
```

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

Returns the resource id of the main icon.

### getLogoResourceId

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 [getLogoResourceId](https://developer.android.com/reference/kotlin/androidx/leanback/app/OnboardingFragment#getLogoResourceId())(): Int
```

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

Returns the resource ID of the splash logo image.

| Returns |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | The resource ID of the splash logo image. |

### getStartButtonText

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 [getStartButtonText](https://developer.android.com/reference/kotlin/androidx/leanback/app/OnboardingFragment#getStartButtonText())(): CharSequence?
```

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

Returns the start button text if it's set through `https://developer.android.com/reference/kotlin/androidx/leanback/app/OnboardingFragment#setStartButtonText(java.lang.CharSequence)`}. If no string was set, null is returned.

### getTitleViewTextColor

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 [getTitleViewTextColor](https://developer.android.com/reference/kotlin/androidx/leanback/app/OnboardingFragment#getTitleViewTextColor())(): @ColorInt Int
```

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

Returns the text color of TitleView if it's set through `https://developer.android.com/reference/kotlin/androidx/leanback/app/OnboardingFragment#setTitleViewTextColor(int)`. If no color was set, transparent is returned.

### 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/OnboardingFragment#onCreateView(android.view.LayoutInflater,android.view.ViewGroup,android.os.Bundle))(
    inflater: LayoutInflater!,
    container: ViewGroup?,
    savedInstanceState: Bundle!
): View?
```

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

### onProvideTheme

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 [onProvideTheme](https://developer.android.com/reference/kotlin/androidx/leanback/app/OnboardingFragment#onProvideTheme())(): Int
```

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

Returns the theme used for styling the fragment. The default returns -1, indicating that the host Activity's theme should be used.

| Returns |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | The theme resource ID of the theme to use in this fragment, or -1 to use the host Activity's theme. |

### onSaveInstanceState

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 [onSaveInstanceState](https://developer.android.com/reference/kotlin/androidx/leanback/app/OnboardingFragment#onSaveInstanceState(android.os.Bundle))(outState: Bundle!): Unit
```

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

### onViewCreated

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 [onViewCreated](https://developer.android.com/reference/kotlin/androidx/leanback/app/OnboardingFragment#onViewCreated(android.view.View,android.os.Bundle))(view: View, savedInstanceState: Bundle?): Unit
```

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

### setArrowBackgroundColor

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 [setArrowBackgroundColor](https://developer.android.com/reference/kotlin/androidx/leanback/app/OnboardingFragment#setArrowBackgroundColor(int))(color: @ColorInt Int): Unit
```

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

Sets the background color of the arrow. If not set, the default color from attr in the theme will be used.

| 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 for arrow background |

### setArrowColor

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 [setArrowColor](https://developer.android.com/reference/kotlin/androidx/leanback/app/OnboardingFragment#setArrowColor(int))(color: @ColorInt Int): Unit
```

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

Sets the color of the arrow. This color will supersede the color set in the theme attribute if provided. If none of these two are set, the arrow will have its original bitmap 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 for arrow background |

### setDescriptionViewTextColor

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 [setDescriptionViewTextColor](https://developer.android.com/reference/kotlin/androidx/leanback/app/OnboardingFragment#setDescriptionViewTextColor(int))(color: @ColorInt Int): Unit
```

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

Sets the text color for DescriptionView. If not set, the default textColor set in style referenced by attr will be used.

| 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 text color for DescriptionView |

### setDotBackgroundColor

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 [setDotBackgroundColor](https://developer.android.com/reference/kotlin/androidx/leanback/app/OnboardingFragment#setDotBackgroundColor(int))(color: @ColorInt Int): Unit
```

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

Sets the background color of the dots. If not set, the default color from attr in the theme will be used.

| 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 for dot backgrounds |

### setIconResouceId

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 [setIconResouceId](https://developer.android.com/reference/kotlin/androidx/leanback/app/OnboardingFragment#setIconResouceId(int))(resourceId: Int): Unit
```

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

Sets the resource id for the main icon.

### setLogoResourceId

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 [setLogoResourceId](https://developer.android.com/reference/kotlin/androidx/leanback/app/OnboardingFragment#setLogoResourceId(int))(id: Int): Unit
```

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

Sets the resource ID of the splash logo image. If the logo resource id set, the default logo splash animation will be played.

| Parameters |
|---|---|
| `id: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | The resource ID of the logo image. |

### setStartButtonText

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 [setStartButtonText](https://developer.android.com/reference/kotlin/androidx/leanback/app/OnboardingFragment#setStartButtonText(java.lang.CharSequence))(text: CharSequence?): Unit
```

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

Sets the text on the start button text. If not set, the default text set in will be used.

| Parameters |
|---|---|
| `text: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-char-sequence/index.html?` | the start button text |

### setTitleViewTextColor

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 [setTitleViewTextColor](https://developer.android.com/reference/kotlin/androidx/leanback/app/OnboardingFragment#setTitleViewTextColor(int))(color: @ColorInt Int): Unit
```

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

Sets the text color for TitleView. If not set, the default textColor set in style referenced by attr will be used.

| 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 text color for TitleView |

## Protected functions

### getCurrentPageIndex

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)

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

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

Returns the index of the current page.

| Returns |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | The index of the current page. |

### getPageCount

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)

```
protected abstract fun [getPageCount](https://developer.android.com/reference/kotlin/androidx/leanback/app/OnboardingFragment#getPageCount())(): Int
```

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

Returns the page count.

| Returns |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | The page count. |

### getPageDescription

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)

```
protected abstract fun [getPageDescription](https://developer.android.com/reference/kotlin/androidx/leanback/app/OnboardingFragment#getPageDescription(int))(pageIndex: Int): CharSequence?
```

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

Returns the description of the given page.

| Parameters |
|---|---|
| `pageIndex: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | The page index. |

| Returns |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-char-sequence/index.html?` | The description of the page. |

### getPageTitle

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)

```
protected abstract fun [getPageTitle](https://developer.android.com/reference/kotlin/androidx/leanback/app/OnboardingFragment#getPageTitle(int))(pageIndex: Int): CharSequence?
```

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

Returns the title of the given page.

| Parameters |
|---|---|
| `pageIndex: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | The page index. |

| Returns |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-char-sequence/index.html?` | The title of the page. |

### isLogoAnimationFinished

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)

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

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

Returns whether the logo enter animation is finished.

| Returns |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `true` if the logo enter transition is finished, `false` otherwise |

### moveToNextPage

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)

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

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

Navigates to the next page.

### moveToPreviousPage

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)

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

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

Navigates to the previous page.

### onCreateBackgroundView

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)

```
protected abstract fun [onCreateBackgroundView](https://developer.android.com/reference/kotlin/androidx/leanback/app/OnboardingFragment#onCreateBackgroundView(android.view.LayoutInflater,android.view.ViewGroup))(inflater: LayoutInflater, container: ViewGroup): View?
```

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

Called to have the inherited class create background view. This is optional and the fragment which doesn't have the background view can return `null`. This is called inside `https://developer.android.com/reference/kotlin/androidx/leanback/app/OnboardingFragment#onCreateView(android.view.LayoutInflater,android.view.ViewGroup,android.os.Bundle)`.

| Parameters |
|---|---|
| `inflater: https://developer.android.com/reference/android/view/LayoutInflater.html` | The LayoutInflater object that can be used to inflate the views, |
| `container: https://developer.android.com/reference/android/view/ViewGroup.html` | The parent view that the additional views are attached to.The fragment should not add the view by itself. |

| Returns |
|---|---|
| `https://developer.android.com/reference/android/view/View.html?` | The background view for the onboarding screen, or `null`. |

### onCreateContentView

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)

```
protected abstract fun [onCreateContentView](https://developer.android.com/reference/kotlin/androidx/leanback/app/OnboardingFragment#onCreateContentView(android.view.LayoutInflater,android.view.ViewGroup))(inflater: LayoutInflater, container: ViewGroup): View?
```

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

Called to have the inherited class create content view. This is optional and the fragment which doesn't have the content view can return `null`. This is called inside `https://developer.android.com/reference/kotlin/androidx/leanback/app/OnboardingFragment#onCreateView(android.view.LayoutInflater,android.view.ViewGroup,android.os.Bundle)`.

The content view would be located at the center of the screen.

| Parameters |
|---|---|
| `inflater: https://developer.android.com/reference/android/view/LayoutInflater.html` | The LayoutInflater object that can be used to inflate the views, |
| `container: https://developer.android.com/reference/android/view/ViewGroup.html` | The parent view that the additional views are attached to.The fragment should not add the view by itself. |

| Returns |
|---|---|
| `https://developer.android.com/reference/android/view/View.html?` | The content view for the onboarding screen, or `null`. |

### onCreateDescriptionAnimator

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)

```
protected fun [onCreateDescriptionAnimator](https://developer.android.com/reference/kotlin/androidx/leanback/app/OnboardingFragment#onCreateDescriptionAnimator())(): Animator
```

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

Provides the entry animation for description view. This allows users to override the default fade and slide animation. Returning null will disable the animation.

### onCreateEnterAnimation

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)

```
protected fun [onCreateEnterAnimation](https://developer.android.com/reference/kotlin/androidx/leanback/app/OnboardingFragment#onCreateEnterAnimation())(): Animator?
```

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

Called to have the inherited class create its enter animation. The start animation runs after logo animation ends.

| Returns |
|---|---|
| `https://developer.android.com/reference/android/animation/Animator.html?` | The `https://developer.android.com/reference/android/animation/Animator.html` object which runs the page enter animation. |

### onCreateForegroundView

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)

```
protected abstract fun [onCreateForegroundView](https://developer.android.com/reference/kotlin/androidx/leanback/app/OnboardingFragment#onCreateForegroundView(android.view.LayoutInflater,android.view.ViewGroup))(inflater: LayoutInflater, container: ViewGroup): View?
```

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

Called to have the inherited class create foreground view. This is optional and the fragment which doesn't need the foreground view can return `null`. This is called inside `https://developer.android.com/reference/kotlin/androidx/leanback/app/OnboardingFragment#onCreateView(android.view.LayoutInflater,android.view.ViewGroup,android.os.Bundle)`.

This foreground view would have the highest z-order.

| Parameters |
|---|---|
| `inflater: https://developer.android.com/reference/android/view/LayoutInflater.html` | The LayoutInflater object that can be used to inflate the views, |
| `container: https://developer.android.com/reference/android/view/ViewGroup.html` | The parent view that the additional views are attached to.The fragment should not add the view by itself. |

| Returns |
|---|---|
| `https://developer.android.com/reference/android/view/View.html?` | The foreground view for the onboarding screen, or `null`. |

### onCreateLogoAnimation

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)

```
protected fun [onCreateLogoAnimation](https://developer.android.com/reference/kotlin/androidx/leanback/app/OnboardingFragment#onCreateLogoAnimation())(): Animator?
```

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

Called to have the inherited class create its own logo animation.

This is called only if the logo image resource ID is not set by `https://developer.android.com/reference/kotlin/androidx/leanback/app/OnboardingFragment#setLogoResourceId(int)`. If this returns `null`, the logo animation is skipped.

| Returns |
|---|---|
| `https://developer.android.com/reference/android/animation/Animator.html?` | The `https://developer.android.com/reference/android/animation/Animator.html` object which runs the logo animation. |

### onCreateTitleAnimator

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)

```
protected fun [onCreateTitleAnimator](https://developer.android.com/reference/kotlin/androidx/leanback/app/OnboardingFragment#onCreateTitleAnimator())(): Animator
```

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

Provides the entry animation for title view. This allows users to override the default fade and slide animation. Returning null will disable the animation.

### onFinishFragment

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)

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

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

Called when the onboarding flow finishes.

### onLogoAnimationFinished

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)

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

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

Called immediately after the logo animation is complete or no logo animation is specified. This method can also be called when the activity is recreated, i.e. when no logo animation are performed. By default, this method will hide the logo view and start the entrance animation for this fragment. Overriding subclasses can provide their own data loading logic as to when the entrance animation should be executed.

### onPageChanged

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)

```
protected fun [onPageChanged](https://developer.android.com/reference/kotlin/androidx/leanback/app/OnboardingFragment#onPageChanged(int,int))(newPage: Int, previousPage: Int): Unit
```

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

Called when the page has been changed.

| Parameters |
|---|---|
| `newPage: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | The new page. |
| `previousPage: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | The previous page. |

### startEnterAnimation

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)

```
protected fun [startEnterAnimation](https://developer.android.com/reference/kotlin/androidx/leanback/app/OnboardingFragment#startEnterAnimation(boolean))(force: Boolean): Unit
```

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

Called to start entrance transition. This can be called by subclasses when the logo animation and data loading is complete. If force flag is set to false, it will only start the animation if it's not already done yet. Otherwise, it will always start the enter animation. In both cases, the logo view will hide and the rest of fragment views become visible after this call.

| Parameters |
|---|---|
| `force: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `true` if enter animation has to be performed regardless of whether it's been done in the past, `false` otherwise |