# GuidedStepFragment

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

*** ** * ** ***

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

A GuidedStepFragment is used to guide the user through a decision or series of decisions. It is composed of a guidance view on the left and a view on the right containing a list of possible actions.

### Basic Usage

Clients of GuidedStepFragment must create a custom subclass to attach to their Activities. This custom subclass provides the information necessary to construct the user interface and respond to user actions. At a minimum, subclasses should override:

- `https://developer.android.com/reference/kotlin/androidx/leanback/app/GuidedStepFragment#onCreateGuidance(android.os.Bundle)`, to provide instructions to the user
- `https://developer.android.com/reference/kotlin/androidx/leanback/app/GuidedStepFragment#onCreateActions(java.util.List<androidx.leanback.widget.GuidedAction>,android.os.Bundle)`, to provide a set of `https://developer.android.com/reference/kotlin/androidx/leanback/widget/GuidedAction`s the user can take
- `https://developer.android.com/reference/kotlin/androidx/leanback/app/GuidedStepFragment#onGuidedActionClicked(androidx.leanback.widget.GuidedAction)`, to respond to those actions

Clients use following helper functions to add GuidedStepFragment to Activity or FragmentManager:

- `https://developer.android.com/reference/kotlin/androidx/leanback/app/GuidedStepFragment#addAsRoot(android.app.Activity,androidx.leanback.app.GuidedStepFragment,int)`, to be called during Activity onCreate, adds GuidedStepFragment as the first Fragment in activity.
- `https://developer.android.com/reference/kotlin/androidx/leanback/app/GuidedStepFragment#add(android.app.FragmentManager,androidx.leanback.app.GuidedStepFragment)` or `https://developer.android.com/reference/kotlin/androidx/leanback/app/GuidedStepFragment#add(android.app.FragmentManager,androidx.leanback.app.GuidedStepFragment,int)`, to add GuidedStepFragment on top of existing Fragments or replacing existing GuidedStepFragment when moving forward to next step.
- `https://developer.android.com/reference/kotlin/androidx/leanback/app/GuidedStepFragment#finishGuidedStepFragments()` can either finish the activity or pop all GuidedStepFragment from stack.
- If app chooses not to use the helper function, it is the app's responsibility to call `https://developer.android.com/reference/kotlin/androidx/leanback/app/GuidedStepFragment#setUiStyle(int)` to select fragment transition and remember the stack entry where it need pops to.

### Theming and Stylists

GuidedStepFragment delegates its visual styling to classes called stylists. The `https://developer.android.com/reference/kotlin/androidx/leanback/widget/GuidanceStylist` is responsible for the left guidance view, while the `https://developer.android.com/reference/kotlin/androidx/leanback/widget/GuidedActionsStylist` is responsible for the right actions view. The stylists use theme attributes to derive values associated with the presentation, such as colors, animations, etc. Most simple visual aspects of GuidanceStylist and GuidedActionsStylist can be customized via theming; see their documentation for more information.

GuidedStepFragments must have access to an appropriate theme in order for the stylists to function properly. Specifically, the fragment must receive , or a theme whose parent is 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 GuidedStep 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 GuidedStepFragment as an overlay to the Activity's theme.
- Finally, custom subclasses of GuidedStepFragment may provide a theme through the `https://developer.android.com/reference/kotlin/androidx/leanback/app/GuidedStepFragment#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 guided step theme do not need to set the guidedStepTheme attribute; if set, it will be ignored.)

If themes do not provide enough customizability, the stylists themselves may be subclassed and provided to the GuidedStepFragment through the `https://developer.android.com/reference/kotlin/androidx/leanback/app/GuidedStepFragment#onCreateGuidanceStylist()` and `https://developer.android.com/reference/kotlin/androidx/leanback/app/GuidedStepFragment#onCreateActionsStylist()` methods. The stylists have simple hooks so that subclasses may override layout files; subclasses may also have more complex logic to determine styling.

### Guided sequences

GuidedStepFragments can be grouped together to provide a guided sequence. GuidedStepFragments grouped as a sequence use custom animations provided by `https://developer.android.com/reference/kotlin/androidx/leanback/widget/GuidanceStylist` and `https://developer.android.com/reference/kotlin/androidx/leanback/widget/GuidedActionsStylist` (or subclasses) during transitions between steps. Clients should use `https://developer.android.com/reference/kotlin/androidx/leanback/app/GuidedStepFragment#add(android.app.FragmentManager,androidx.leanback.app.GuidedStepFragment)` to place subsequent GuidedFragments onto the fragment stack so that custom animations are properly configured. (Custom animations are triggered automatically when the fragment stack is subsequently popped by any normal mechanism.)

*Note: Currently GuidedStepFragments grouped in this way must all be defined programmatically, rather than in XML. This restriction may be removed in the future.*

| See also |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/leanback/widget/GuidanceStylist` |   |
| `https://developer.android.com/reference/kotlin/androidx/leanback/widget/GuidanceStylist.Guidance` |   |
| `https://developer.android.com/reference/kotlin/androidx/leanback/widget/GuidedAction` |   |
| `https://developer.android.com/reference/kotlin/androidx/leanback/widget/GuidedActionsStylist` |   |

## Summary

| ### Constants |
|---|---|
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` | `https://developer.android.com/reference/kotlin/androidx/leanback/app/GuidedStepFragment#EXTRA_UI_STYLE() = "uiStyle"` **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/GuidedStepFragment#UI_STYLE_ACTIVITY_ROOT() = 2` **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/GuidedStepFragment#UI_STYLE_DEFAULT() = 0` **This property is deprecated.** Same value as `https://developer.android.com/reference/kotlin/androidx/leanback/app/GuidedStepFragment#UI_STYLE_REPLACE()`. <br /> |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/leanback/app/GuidedStepFragment#UI_STYLE_ENTRANCE() = 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/GuidedStepFragment#UI_STYLE_REPLACE() = 0` **This property is deprecated.** Deprecated in Java |

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

| ### Public functions |
|---|---|
| `java-static https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `[add](https://developer.android.com/reference/kotlin/androidx/leanback/app/GuidedStepFragment#add(android.app.FragmentManager,androidx.leanback.app.GuidedStepFragment))(fragmentManager: https://developer.android.com/reference/android/app/FragmentManager.html, fragment: https://developer.android.com/reference/kotlin/androidx/leanback/app/GuidedStepFragment)` **This function is deprecated.** Deprecated in Java |
| `java-static https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `[add](https://developer.android.com/reference/kotlin/androidx/leanback/app/GuidedStepFragment#add(android.app.FragmentManager,androidx.leanback.app.GuidedStepFragment,int))( fragmentManager: https://developer.android.com/reference/android/app/FragmentManager.html, fragment: https://developer.android.com/reference/kotlin/androidx/leanback/app/GuidedStepFragment, id: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html )` **This function is deprecated.** Deprecated in Java |
| `java-static https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `[addAsRoot](https://developer.android.com/reference/kotlin/androidx/leanback/app/GuidedStepFragment#addAsRoot(android.app.Activity,androidx.leanback.app.GuidedStepFragment,int))(activity: https://developer.android.com/reference/android/app/Activity.html, fragment: https://developer.android.com/reference/kotlin/androidx/leanback/app/GuidedStepFragment, 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` | `[collapseAction](https://developer.android.com/reference/kotlin/androidx/leanback/app/GuidedStepFragment#collapseAction(boolean))(withTransition: 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` | `[collapseSubActions](https://developer.android.com/reference/kotlin/androidx/leanback/app/GuidedStepFragment#collapseSubActions())()` **This function is deprecated.** Deprecated in Java |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `[expandAction](https://developer.android.com/reference/kotlin/androidx/leanback/app/GuidedStepFragment#expandAction(androidx.leanback.widget.GuidedAction,boolean))(action: https://developer.android.com/reference/kotlin/androidx/leanback/widget/GuidedAction, withTransition: 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` | `[expandSubActions](https://developer.android.com/reference/kotlin/androidx/leanback/app/GuidedStepFragment#expandSubActions(androidx.leanback.widget.GuidedAction))(action: https://developer.android.com/reference/kotlin/androidx/leanback/widget/GuidedAction)` **This function is deprecated.** Deprecated in Java |
| `https://developer.android.com/reference/kotlin/androidx/leanback/widget/GuidedAction?` | `[findActionById](https://developer.android.com/reference/kotlin/androidx/leanback/app/GuidedStepFragment#findActionById(long))(id: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html)` **This function is deprecated.** Deprecated in Java |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `[findActionPositionById](https://developer.android.com/reference/kotlin/androidx/leanback/app/GuidedStepFragment#findActionPositionById(long))(id: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html)` **This function is deprecated.** Deprecated in Java |
| `https://developer.android.com/reference/kotlin/androidx/leanback/widget/GuidedAction?` | `[findButtonActionById](https://developer.android.com/reference/kotlin/androidx/leanback/app/GuidedStepFragment#findButtonActionById(long))(id: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html)` **This function is deprecated.** Deprecated in Java |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `[findButtonActionPositionById](https://developer.android.com/reference/kotlin/androidx/leanback/app/GuidedStepFragment#findButtonActionPositionById(long))(id: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html)` **This function is deprecated.** Deprecated in Java |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `[finishGuidedStepFragments](https://developer.android.com/reference/kotlin/androidx/leanback/app/GuidedStepFragment#finishGuidedStepFragments())()` **This function is deprecated.** Deprecated in Java |
| `https://developer.android.com/reference/android/view/View.html?` | `[getActionItemView](https://developer.android.com/reference/kotlin/androidx/leanback/app/GuidedStepFragment#getActionItemView(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.collections/-mutable-list/index.html)https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<https://developer.android.com/reference/kotlin/androidx/leanback/widget/GuidedAction!>` | `[getActions](https://developer.android.com/reference/kotlin/androidx/leanback/app/GuidedStepFragment#getActions())()` **This function is deprecated.** Deprecated in Java |
| `https://developer.android.com/reference/android/view/View.html?` | `[getButtonActionItemView](https://developer.android.com/reference/kotlin/androidx/leanback/app/GuidedStepFragment#getButtonActionItemView(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.collections/-mutable-list/index.html)https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<https://developer.android.com/reference/kotlin/androidx/leanback/widget/GuidedAction!>` | `[getButtonActions](https://developer.android.com/reference/kotlin/androidx/leanback/app/GuidedStepFragment#getButtonActions())()` **This function is deprecated.** Deprecated in Java |
| `java-static https://developer.android.com/reference/kotlin/androidx/leanback/app/GuidedStepFragment?` | `[getCurrentGuidedStepFragment](https://developer.android.com/reference/kotlin/androidx/leanback/app/GuidedStepFragment#getCurrentGuidedStepFragment(android.app.FragmentManager))(fm: https://developer.android.com/reference/android/app/FragmentManager.html)` **This function is deprecated.** Deprecated in Java |
| `https://developer.android.com/reference/kotlin/androidx/leanback/widget/GuidanceStylist` | `[getGuidanceStylist](https://developer.android.com/reference/kotlin/androidx/leanback/app/GuidedStepFragment#getGuidanceStylist())()` **This function is deprecated.** Deprecated in Java |
| `https://developer.android.com/reference/kotlin/androidx/leanback/widget/GuidedActionsStylist` | `[getGuidedActionsStylist](https://developer.android.com/reference/kotlin/androidx/leanback/app/GuidedStepFragment#getGuidedActionsStylist())()` **This function is deprecated.** Deprecated in Java |
| `https://developer.android.com/reference/kotlin/androidx/leanback/widget/GuidedActionsStylist` | `[getGuidedButtonActionsStylist](https://developer.android.com/reference/kotlin/androidx/leanback/app/GuidedStepFragment#getGuidedButtonActionsStylist())()` **This function is deprecated.** Deprecated in Java |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `[getSelectedActionPosition](https://developer.android.com/reference/kotlin/androidx/leanback/app/GuidedStepFragment#getSelectedActionPosition())()` **This function is deprecated.** Deprecated in Java |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `[getSelectedButtonActionPosition](https://developer.android.com/reference/kotlin/androidx/leanback/app/GuidedStepFragment#getSelectedButtonActionPosition())()` **This function is deprecated.** Deprecated in Java |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `[getUiStyle](https://developer.android.com/reference/kotlin/androidx/leanback/app/GuidedStepFragment#getUiStyle())()` **This function is deprecated.** Deprecated in Java |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `[isExpanded](https://developer.android.com/reference/kotlin/androidx/leanback/app/GuidedStepFragment#isExpanded())()` **This function is deprecated.** Deprecated in Java |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `[isFocusOutEndAllowed](https://developer.android.com/reference/kotlin/androidx/leanback/app/GuidedStepFragment#isFocusOutEndAllowed())()` **This function is deprecated.** Deprecated in Java |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `[isFocusOutStartAllowed](https://developer.android.com/reference/kotlin/androidx/leanback/app/GuidedStepFragment#isFocusOutStartAllowed())()` **This function is deprecated.** Deprecated in Java |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `[isSubActionsExpanded](https://developer.android.com/reference/kotlin/androidx/leanback/app/GuidedStepFragment#isSubActionsExpanded())()` **This function is deprecated.** Deprecated in Java |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `[notifyActionChanged](https://developer.android.com/reference/kotlin/androidx/leanback/app/GuidedStepFragment#notifyActionChanged(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` | `[notifyButtonActionChanged](https://developer.android.com/reference/kotlin/androidx/leanback/app/GuidedStepFragment#notifyButtonActionChanged(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` | `[onCreate](https://developer.android.com/reference/kotlin/androidx/leanback/app/GuidedStepFragment#onCreate(android.os.Bundle))(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` | `[onCreateActions](https://developer.android.com/reference/kotlin/androidx/leanback/app/GuidedStepFragment#onCreateActions(java.util.List<androidx.leanback.widget.GuidedAction>,android.os.Bundle))( actions: (https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-mutable-list/index.html)https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<https://developer.android.com/reference/kotlin/androidx/leanback/widget/GuidedAction!>, savedInstanceState: https://developer.android.com/reference/android/os/Bundle.html? )` **This function is deprecated.** Deprecated in Java |
| `https://developer.android.com/reference/kotlin/androidx/leanback/widget/GuidedActionsStylist` | `[onCreateActionsStylist](https://developer.android.com/reference/kotlin/androidx/leanback/app/GuidedStepFragment#onCreateActionsStylist())()` **This function is deprecated.** Deprecated in Java |
| `https://developer.android.com/reference/android/view/View.html?` | `[onCreateBackgroundView](https://developer.android.com/reference/kotlin/androidx/leanback/app/GuidedStepFragment#onCreateBackgroundView(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.** Deprecated in Java |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `[onCreateButtonActions](https://developer.android.com/reference/kotlin/androidx/leanback/app/GuidedStepFragment#onCreateButtonActions(java.util.List<androidx.leanback.widget.GuidedAction>,android.os.Bundle))( actions: (https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-mutable-list/index.html)https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<https://developer.android.com/reference/kotlin/androidx/leanback/widget/GuidedAction!>, savedInstanceState: https://developer.android.com/reference/android/os/Bundle.html? )` **This function is deprecated.** Deprecated in Java |
| `https://developer.android.com/reference/kotlin/androidx/leanback/widget/GuidedActionsStylist` | `[onCreateButtonActionsStylist](https://developer.android.com/reference/kotlin/androidx/leanback/app/GuidedStepFragment#onCreateButtonActionsStylist())()` **This function is deprecated.** Deprecated in Java |
| `https://developer.android.com/reference/kotlin/androidx/leanback/widget/GuidanceStylist.Guidance` | `[onCreateGuidance](https://developer.android.com/reference/kotlin/androidx/leanback/app/GuidedStepFragment#onCreateGuidance(android.os.Bundle))(savedInstanceState: https://developer.android.com/reference/android/os/Bundle.html?)` **This function is deprecated.** Deprecated in Java |
| `https://developer.android.com/reference/kotlin/androidx/leanback/widget/GuidanceStylist` | `[onCreateGuidanceStylist](https://developer.android.com/reference/kotlin/androidx/leanback/app/GuidedStepFragment#onCreateGuidanceStylist())()` **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/GuidedStepFragment#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.** Deprecated in Java |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `[onDestroyView](https://developer.android.com/reference/kotlin/androidx/leanback/app/GuidedStepFragment#onDestroyView())()` **This function is deprecated.** Deprecated in Java |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `[onGuidedActionClicked](https://developer.android.com/reference/kotlin/androidx/leanback/app/GuidedStepFragment#onGuidedActionClicked(androidx.leanback.widget.GuidedAction))(action: https://developer.android.com/reference/kotlin/androidx/leanback/widget/GuidedAction)` **This function is deprecated.** Deprecated in Java |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `[onGuidedActionEditCanceled](https://developer.android.com/reference/kotlin/androidx/leanback/app/GuidedStepFragment#onGuidedActionEditCanceled(androidx.leanback.widget.GuidedAction))(action: https://developer.android.com/reference/kotlin/androidx/leanback/widget/GuidedAction)` **This function is deprecated.** Deprecated in Java |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `[onGuidedActionEdited](https://developer.android.com/reference/kotlin/androidx/leanback/app/GuidedStepFragment#onGuidedActionEdited(androidx.leanback.widget.GuidedAction))(action: https://developer.android.com/reference/kotlin/androidx/leanback/widget/GuidedAction!)` **This function is deprecated.** Override `https://developer.android.com/reference/kotlin/androidx/leanback/app/GuidedStepFragment#onGuidedActionEditedAndProceed(androidx.leanback.widget.GuidedAction)` and/or `https://developer.android.com/reference/kotlin/androidx/leanback/app/GuidedStepFragment#onGuidedActionEditCanceled(androidx.leanback.widget.GuidedAction)`. <br /> |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html` | `[onGuidedActionEditedAndProceed](https://developer.android.com/reference/kotlin/androidx/leanback/app/GuidedStepFragment#onGuidedActionEditedAndProceed(androidx.leanback.widget.GuidedAction))(action: https://developer.android.com/reference/kotlin/androidx/leanback/widget/GuidedAction)` **This function is deprecated.** Deprecated in Java |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `[onGuidedActionFocused](https://developer.android.com/reference/kotlin/androidx/leanback/app/GuidedStepFragment#onGuidedActionFocused(androidx.leanback.widget.GuidedAction))(action: https://developer.android.com/reference/kotlin/androidx/leanback/widget/GuidedAction)` **This function is deprecated.** Deprecated in Java |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `[onProvideTheme](https://developer.android.com/reference/kotlin/androidx/leanback/app/GuidedStepFragment#onProvideTheme())()` **This function is deprecated.** Deprecated in Java |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `[onResume](https://developer.android.com/reference/kotlin/androidx/leanback/app/GuidedStepFragment#onResume())()` **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/GuidedStepFragment#onSaveInstanceState(android.os.Bundle))(outState: 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` | `[onSubGuidedActionClicked](https://developer.android.com/reference/kotlin/androidx/leanback/app/GuidedStepFragment#onSubGuidedActionClicked(androidx.leanback.widget.GuidedAction))(action: https://developer.android.com/reference/kotlin/androidx/leanback/widget/GuidedAction)` **This function is deprecated.** Deprecated in Java |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `[openInEditMode](https://developer.android.com/reference/kotlin/androidx/leanback/app/GuidedStepFragment#openInEditMode(androidx.leanback.widget.GuidedAction))(action: https://developer.android.com/reference/kotlin/androidx/leanback/widget/GuidedAction?)` **This function is deprecated.** Deprecated in Java |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `[popBackStackToGuidedStepFragment](https://developer.android.com/reference/kotlin/androidx/leanback/app/GuidedStepFragment#popBackStackToGuidedStepFragment(java.lang.Class<?>,int))( guidedStepFragmentClass: https://developer.android.com/reference/java/lang/Class.html<*>, 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` | `[setActions](https://developer.android.com/reference/kotlin/androidx/leanback/app/GuidedStepFragment#setActions(java.util.List<androidx.leanback.widget.GuidedAction>))(actions: (https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-mutable-list/index.html)https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<https://developer.android.com/reference/kotlin/androidx/leanback/widget/GuidedAction!>)` **This function is deprecated.** Deprecated in Java |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `[setActionsDiffCallback](https://developer.android.com/reference/kotlin/androidx/leanback/app/GuidedStepFragment#setActionsDiffCallback(androidx.leanback.widget.DiffCallback<androidx.leanback.widget.GuidedAction>))(diffCallback: https://developer.android.com/reference/kotlin/androidx/leanback/widget/DiffCallback<https://developer.android.com/reference/kotlin/androidx/leanback/widget/GuidedAction!>?)` **This function is deprecated.** Deprecated in Java |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `[setButtonActions](https://developer.android.com/reference/kotlin/androidx/leanback/app/GuidedStepFragment#setButtonActions(java.util.List<androidx.leanback.widget.GuidedAction>))(actions: (https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-mutable-list/index.html)https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<https://developer.android.com/reference/kotlin/androidx/leanback/widget/GuidedAction!>)` **This function is deprecated.** Deprecated in Java |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `[setSelectedActionPosition](https://developer.android.com/reference/kotlin/androidx/leanback/app/GuidedStepFragment#setSelectedActionPosition(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` | `[setSelectedButtonActionPosition](https://developer.android.com/reference/kotlin/androidx/leanback/app/GuidedStepFragment#setSelectedButtonActionPosition(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` | `[setUiStyle](https://developer.android.com/reference/kotlin/androidx/leanback/app/GuidedStepFragment#setUiStyle(int))(style: 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/-unit/index.html` | `[onAddSharedElementTransition](https://developer.android.com/reference/kotlin/androidx/leanback/app/GuidedStepFragment#onAddSharedElementTransition(android.app.FragmentTransaction,androidx.leanback.app.GuidedStepFragment))( ft: https://developer.android.com/reference/android/app/FragmentTransaction.html, disappearing: https://developer.android.com/reference/kotlin/androidx/leanback/app/GuidedStepFragment )` **This function is deprecated.** Deprecated in Java |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `[onProvideFragmentTransitions](https://developer.android.com/reference/kotlin/androidx/leanback/app/GuidedStepFragment#onProvideFragmentTransitions())()` **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://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` `[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` `[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` `[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

### EXTRA_UI_STYLE

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 EXTRA_UI_STYLE = "uiStyle": String!
```

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

Fragment argument name for UI style. The argument value is persisted in fragment state and used to select fragment transition. The value is initially `https://developer.android.com/reference/kotlin/androidx/leanback/app/GuidedStepFragment#UI_STYLE_ENTRANCE()` and might be changed in one of the three helper functions:

- `https://developer.android.com/reference/kotlin/androidx/leanback/app/GuidedStepFragment#addAsRoot(android.app.Activity,androidx.leanback.app.GuidedStepFragment,int)` sets to `https://developer.android.com/reference/kotlin/androidx/leanback/app/GuidedStepFragment#UI_STYLE_ACTIVITY_ROOT()`
- `https://developer.android.com/reference/kotlin/androidx/leanback/app/GuidedStepFragment#add(android.app.FragmentManager,androidx.leanback.app.GuidedStepFragment)` or `https://developer.android.com/reference/kotlin/androidx/leanback/app/GuidedStepFragment#add(android.app.FragmentManager,androidx.leanback.app.GuidedStepFragment,int)` sets it to `https://developer.android.com/reference/kotlin/androidx/leanback/app/GuidedStepFragment#UI_STYLE_REPLACE()` if there is already a GuidedStepFragment on stack.
- `https://developer.android.com/reference/kotlin/androidx/leanback/app/GuidedStepFragment#finishGuidedStepFragments()` changes current GuidedStepFragment to `https://developer.android.com/reference/kotlin/androidx/leanback/app/GuidedStepFragment#UI_STYLE_ENTRANCE()` for the non activity case. This is a special case that changes the transition settings after fragment has been created, in order to force current GuidedStepFragment run a return transition of `https://developer.android.com/reference/kotlin/androidx/leanback/app/GuidedStepFragment#UI_STYLE_ENTRANCE()`

Argument value can be either:

- `https://developer.android.com/reference/kotlin/androidx/leanback/app/GuidedStepFragment#UI_STYLE_REPLACE()`
- `https://developer.android.com/reference/kotlin/androidx/leanback/app/GuidedStepFragment#UI_STYLE_ENTRANCE()`
- `https://developer.android.com/reference/kotlin/androidx/leanback/app/GuidedStepFragment#UI_STYLE_ACTIVITY_ROOT()`

### UI_STYLE_ACTIVITY_ROOT

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 UI_STYLE_ACTIVITY_ROOT = 2: Int
```

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

One possible value of argument `https://developer.android.com/reference/kotlin/androidx/leanback/app/GuidedStepFragment#EXTRA_UI_STYLE()`. This is the case that we show first GuidedStepFragment in a separate activity. The default behavior of this style:

- Enter transition is assigned null (will rely on activity transition), exit transition is same as `https://developer.android.com/reference/kotlin/androidx/leanback/app/GuidedStepFragment#UI_STYLE_ENTRANCE()`. Note: Changing exit transition by UI style is not working because fragment transition asks for exit transition before UI style is restored in Fragment.onCreate().

### UI_STYLE_DEFAULT

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 UI_STYLE_DEFAULT = 0: Int
```

> [!CAUTION]
> **This property is deprecated.**   
>
> Same value as `https://developer.android.com/reference/kotlin/androidx/leanback/app/GuidedStepFragment#UI_STYLE_REPLACE()`.

### UI_STYLE_ENTRANCE

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 UI_STYLE_ENTRANCE = 1: Int
```

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

Default value for argument `https://developer.android.com/reference/kotlin/androidx/leanback/app/GuidedStepFragment#EXTRA_UI_STYLE()`. The default value is assigned in GuidedStepFragment constructor. This is the case that we show GuidedStepFragment on top of other content. The default behavior of this style:

- Enter transition slides in from two sides, exit transition slide out to START(left). Background will be faded in. Note: Changing exit transition by UI style is not working because fragment transition asks for exit transition before UI style is restored in Fragment .onCreate().

When popping multiple GuidedStepFragment, `https://developer.android.com/reference/kotlin/androidx/leanback/app/GuidedStepFragment#finishGuidedStepFragments()` also changes the top GuidedStepFragment to UI_STYLE_ENTRANCE in order to run the return transition (reverse of enter transition) of UI_STYLE_ENTRANCE.

### UI_STYLE_REPLACE

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 UI_STYLE_REPLACE = 0: Int
```

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

This is the case that we use GuidedStepFragment to replace another existing GuidedStepFragment when moving forward to next step. Default behavior of this style is:

- Enter transition slides in from END(right), exit transition same as `https://developer.android.com/reference/kotlin/androidx/leanback/app/GuidedStepFragment#UI_STYLE_ENTRANCE()`.

## Public constructors

### GuidedStepFragment

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)

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

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

## Public functions

### add

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 [add](https://developer.android.com/reference/kotlin/androidx/leanback/app/GuidedStepFragment#add(android.app.FragmentManager,androidx.leanback.app.GuidedStepFragment))(fragmentManager: FragmentManager, fragment: GuidedStepFragment): Int
```

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

Adds the specified GuidedStepFragment to the fragment stack, replacing any existing GuidedStepFragments in the stack, and configuring the fragment-to-fragment custom transitions. A backstack entry is added, so the fragment will be dismissed when BACK key is pressed.

- If current fragment on stack is GuidedStepFragment: assign `https://developer.android.com/reference/kotlin/androidx/leanback/app/GuidedStepFragment#UI_STYLE_REPLACE()`
- If current fragment on stack is not GuidedStepFragment: assign `https://developer.android.com/reference/kotlin/androidx/leanback/app/GuidedStepFragment#UI_STYLE_ENTRANCE()`

Note: currently fragments added using this method must be created programmatically rather than via XML.

| Parameters |
|---|---|
| `fragmentManager: https://developer.android.com/reference/android/app/FragmentManager.html` | The FragmentManager to be used in the transaction. |
| `fragment: https://developer.android.com/reference/kotlin/androidx/leanback/app/GuidedStepFragment` | The GuidedStepFragment to be inserted into the fragment stack. |

| Returns |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | The ID returned by the call FragmentTransaction.commit. |

### add

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 [add](https://developer.android.com/reference/kotlin/androidx/leanback/app/GuidedStepFragment#add(android.app.FragmentManager,androidx.leanback.app.GuidedStepFragment,int))(
    fragmentManager: FragmentManager,
    fragment: GuidedStepFragment,
    id: Int
): Int
```

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

Adds the specified GuidedStepFragment to the fragment stack, replacing any existing GuidedStepFragments in the stack, and configuring the fragment-to-fragment custom transitions. A backstack entry is added, so the fragment will be dismissed when BACK key is pressed.

- If current fragment on stack is GuidedStepFragment: assign `https://developer.android.com/reference/kotlin/androidx/leanback/app/GuidedStepFragment#UI_STYLE_REPLACE()` and `https://developer.android.com/reference/kotlin/androidx/leanback/app/GuidedStepFragment#onAddSharedElementTransition(android.app.FragmentTransaction,androidx.leanback.app.GuidedStepFragment)` will be called to perform shared element transition between GuidedStepFragments.
- If current fragment on stack is not GuidedStepFragment: assign `https://developer.android.com/reference/kotlin/androidx/leanback/app/GuidedStepFragment#UI_STYLE_ENTRANCE()`

Note: currently fragments added using this method must be created programmatically rather than via XML.

| Parameters |
|---|---|
| `fragmentManager: https://developer.android.com/reference/android/app/FragmentManager.html` | The FragmentManager to be used in the transaction. |
| `fragment: https://developer.android.com/reference/kotlin/androidx/leanback/app/GuidedStepFragment` | The GuidedStepFragment to be inserted into the fragment stack. |
| `id: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | The id of container to add GuidedStepFragment, can be android.R.id.content. |

| Returns |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | The ID returned by the call FragmentTransaction.commit. |

### addAsRoot

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 [addAsRoot](https://developer.android.com/reference/kotlin/androidx/leanback/app/GuidedStepFragment#addAsRoot(android.app.Activity,androidx.leanback.app.GuidedStepFragment,int))(activity: Activity, fragment: GuidedStepFragment, id: Int): Int
```

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

Adds the specified GuidedStepFragment as content of Activity; no backstack entry is added so the activity will be dismissed when BACK key is pressed. The method is typically called in Activity.onCreate() when savedInstanceState is null. When savedInstanceState is not null, the Activity is being restored, do not call addAsRoot() to duplicate the Fragment restored by FragmentManager. `https://developer.android.com/reference/kotlin/androidx/leanback/app/GuidedStepFragment#UI_STYLE_ACTIVITY_ROOT()` is assigned. Note: currently fragments added using this method must be created programmatically rather than via XML.

| Parameters |
|---|---|
| `activity: https://developer.android.com/reference/android/app/Activity.html` | The Activity to be used to insert GuidedstepFragment. |
| `fragment: https://developer.android.com/reference/kotlin/androidx/leanback/app/GuidedStepFragment` | The GuidedStepFragment to be inserted into the fragment stack. |
| `id: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | The id of container to add GuidedStepFragment, can be android.R.id.content. |

| Returns |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | The ID returned by the call FragmentTransaction.commit, or -1 there is already GuidedStepFragment. |

### collapseAction

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 [collapseAction](https://developer.android.com/reference/kotlin/androidx/leanback/app/GuidedStepFragment#collapseAction(boolean))(withTransition: Boolean): Unit
```

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

Collapse action which either has a sub actions list or action with `https://developer.android.com/reference/kotlin/androidx/leanback/widget/GuidedAction#hasEditableActivatorView()` is true.

| Parameters |
|---|---|
| `withTransition: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | True to run transition animation, false otherwise. |

### collapseSubActions

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

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

Collapse sub actions list.

| See also |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/leanback/widget/GuidedAction#getSubActions()` |   |

### expandAction

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 [expandAction](https://developer.android.com/reference/kotlin/androidx/leanback/app/GuidedStepFragment#expandAction(androidx.leanback.widget.GuidedAction,boolean))(action: GuidedAction, withTransition: Boolean): Unit
```

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

Expand a given action with sub actions list or `https://developer.android.com/reference/kotlin/androidx/leanback/widget/GuidedAction#hasEditableActivatorView()` is true. The method must be called after `https://developer.android.com/reference/kotlin/androidx/leanback/app/GuidedStepFragment#onCreateView(android.view.LayoutInflater,android.view.ViewGroup,android.os.Bundle)` creates fragment view.

| Parameters |
|---|---|
| `action: https://developer.android.com/reference/kotlin/androidx/leanback/widget/GuidedAction` | GuidedAction to expand. |
| `withTransition: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | True to run transition animation, false otherwise. |

### expandSubActions

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 [expandSubActions](https://developer.android.com/reference/kotlin/androidx/leanback/app/GuidedStepFragment#expandSubActions(androidx.leanback.widget.GuidedAction))(action: GuidedAction): Unit
```

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

Expand a given action's sub actions list.

| Parameters |
|---|---|
| `action: https://developer.android.com/reference/kotlin/androidx/leanback/widget/GuidedAction` | GuidedAction to expand. |

| See also |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/leanback/app/GuidedStepFragment#expandAction(androidx.leanback.widget.GuidedAction,boolean)` |   |

### findActionById

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 [findActionById](https://developer.android.com/reference/kotlin/androidx/leanback/app/GuidedStepFragment#findActionById(long))(id: Long): GuidedAction?
```

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

Find GuidedAction by Id.

| Parameters |
|---|---|
| `id: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html` | Id of the action to search. |

| Returns |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/leanback/widget/GuidedAction?` | GuidedAction object or null if not found. |

### findActionPositionById

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 [findActionPositionById](https://developer.android.com/reference/kotlin/androidx/leanback/app/GuidedStepFragment#findActionPositionById(long))(id: Long): Int
```

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

Find GuidedAction position in array by Id.

| Parameters |
|---|---|
| `id: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html` | Id of the action to search. |

| Returns |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | position of GuidedAction object in array or -1 if not found. |

### findButtonActionById

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 [findButtonActionById](https://developer.android.com/reference/kotlin/androidx/leanback/app/GuidedStepFragment#findButtonActionById(long))(id: Long): GuidedAction?
```

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

Find button GuidedAction by Id.

| Parameters |
|---|---|
| `id: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html` | Id of the button action to search. |

| Returns |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/leanback/widget/GuidedAction?` | GuidedAction object or null if not found. |

### findButtonActionPositionById

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 [findButtonActionPositionById](https://developer.android.com/reference/kotlin/androidx/leanback/app/GuidedStepFragment#findButtonActionPositionById(long))(id: Long): Int
```

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

Find button GuidedAction position in array by Id.

| Parameters |
|---|---|
| `id: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html` | Id of the button action to search. |

| Returns |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | position of GuidedAction object in array or -1 if not found. |

### finishGuidedStepFragments

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

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

Convenient method to close GuidedStepFragments on top of other content or finish Activity if GuidedStepFragments were started in a separate activity. Pops all stack entries including `https://developer.android.com/reference/kotlin/androidx/leanback/app/GuidedStepFragment#UI_STYLE_ENTRANCE()`; if `https://developer.android.com/reference/kotlin/androidx/leanback/app/GuidedStepFragment#UI_STYLE_ENTRANCE()` is not found, finish the activity. Note that this method must be paired with `https://developer.android.com/reference/kotlin/androidx/leanback/app/GuidedStepFragment#add(android.app.FragmentManager,androidx.leanback.app.GuidedStepFragment,int)` which sets up the stack entry name for finding which fragment we need to pop back to.

### getActionItemView

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 [getActionItemView](https://developer.android.com/reference/kotlin/androidx/leanback/app/GuidedStepFragment#getActionItemView(int))(position: Int): View?
```

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

Returns the view corresponding to the action at the indicated position in the list of actions for this fragment.

| Parameters |
|---|---|
| `position: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | The integer position of the action of interest. |

| Returns |
|---|---|
| `https://developer.android.com/reference/android/view/View.html?` | The View corresponding to the action at the indicated position, or null if that action is not currently onscreen. |

### getActions

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 [getActions](https://developer.android.com/reference/kotlin/androidx/leanback/app/GuidedStepFragment#getActions())(): (Mutable)List<GuidedAction!>
```

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

Returns the list of GuidedActions that the user may take in this fragment.

| Returns |
|---|---|
| `(https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-mutable-list/index.html)https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<https://developer.android.com/reference/kotlin/androidx/leanback/widget/GuidedAction!>` | The list of GuidedActions for this fragment. |

### getButtonActionItemView

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 [getButtonActionItemView](https://developer.android.com/reference/kotlin/androidx/leanback/app/GuidedStepFragment#getButtonActionItemView(int))(position: Int): View?
```

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

Returns the view corresponding to the button action at the indicated position in the list of actions for this fragment.

| Parameters |
|---|---|
| `position: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | The integer position of the button action of interest. |

| Returns |
|---|---|
| `https://developer.android.com/reference/android/view/View.html?` | The View corresponding to the button action at the indicated position, or null if that action is not currently onscreen. |

### getButtonActions

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 [getButtonActions](https://developer.android.com/reference/kotlin/androidx/leanback/app/GuidedStepFragment#getButtonActions())(): (Mutable)List<GuidedAction!>
```

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

Returns the list of button GuidedActions that the user may take in this fragment.

| Returns |
|---|---|
| `(https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-mutable-list/index.html)https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<https://developer.android.com/reference/kotlin/androidx/leanback/widget/GuidedAction!>` | The list of button GuidedActions for this fragment. |

### getCurrentGuidedStepFragment

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 [getCurrentGuidedStepFragment](https://developer.android.com/reference/kotlin/androidx/leanback/app/GuidedStepFragment#getCurrentGuidedStepFragment(android.app.FragmentManager))(fm: FragmentManager): GuidedStepFragment?
```

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

Returns the current GuidedStepFragment on the fragment transaction stack.

| Returns |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/leanback/app/GuidedStepFragment?` | The current GuidedStepFragment, if any, on the fragment transaction stack. |

### getGuidanceStylist

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

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

Returns the GuidanceStylist that displays guidance information for the user.

| Returns |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/leanback/widget/GuidanceStylist` | The GuidanceStylist for this fragment. |

### getGuidedActionsStylist

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

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

Returns the GuidedActionsStylist that displays the actions the user may take.

| Returns |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/leanback/widget/GuidedActionsStylist` | The GuidedActionsStylist for this fragment. |

### getGuidedButtonActionsStylist

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

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

Returns the GuidedActionsStylist that displays the button actions the user may take.

| Returns |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/leanback/widget/GuidedActionsStylist` | The GuidedActionsStylist for this fragment. |

### getSelectedActionPosition

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

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

Returns the position if the currently selected GuidedAction.

| Returns |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | position The integer position of the currently selected action. |

### getSelectedButtonActionPosition

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

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

Returns the position if the currently selected button GuidedAction.

| Returns |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | position The integer position of the currently selected button action. |

### getUiStyle

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

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

Read UI style from fragment arguments. Default value is `https://developer.android.com/reference/kotlin/androidx/leanback/app/GuidedStepFragment#UI_STYLE_ENTRANCE()` when fragment is first initialized. UI style is used to choose different fragment transition animations and determine if this is the first GuidedStepFragment on backstack.

| Returns |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/leanback/app/GuidedStepFragment#UI_STYLE_ACTIVITY_ROOT()``https://developer.android.com/reference/kotlin/androidx/leanback/app/GuidedStepFragment#UI_STYLE_REPLACE()` or `https://developer.android.com/reference/kotlin/androidx/leanback/app/GuidedStepFragment#UI_STYLE_ENTRANCE()`. |

| See also |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/leanback/app/GuidedStepFragment#onProvideFragmentTransitions()` |   |

### isExpanded

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

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

| Returns |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | True if is current expanded including subactions list or action with `https://developer.android.com/reference/kotlin/androidx/leanback/widget/GuidedAction#hasEditableActivatorView()` is true. |

### isFocusOutEndAllowed

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

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

Returns true if allows focus out of end edge of GuidedStepFragment, false otherwise. Default value is false, the reason is to disable FocusFinder to find focusable views beneath content of GuidedStepFragment. Subclass may override.

| Returns |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | True if allows focus out of end edge of GuidedStepFragment. |

### isFocusOutStartAllowed

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

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

Returns true if allows focus out of start edge of GuidedStepFragment, false otherwise. Default value is false, the reason is to disable FocusFinder to find focusable views beneath content of GuidedStepFragment. Subclass may override.

| Returns |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | True if allows focus out of start edge of GuidedStepFragment. |

### isSubActionsExpanded

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

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

| Returns |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | True if the sub actions list is expanded, false otherwise. |

### notifyActionChanged

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

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

Notify an action has changed and update its UI.

| Parameters |
|---|---|
| `position: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | Position of the GuidedAction in array. |

### notifyButtonActionChanged

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

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

Notify an button action has changed and update its UI.

| Parameters |
|---|---|
| `position: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | Position of the button GuidedAction in array. |

### onCreate

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

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

### onCreateActions

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 [onCreateActions](https://developer.android.com/reference/kotlin/androidx/leanback/app/GuidedStepFragment#onCreateActions(java.util.List<androidx.leanback.widget.GuidedAction>,android.os.Bundle))(
    actions: (Mutable)List<GuidedAction!>,
    savedInstanceState: Bundle?
): Unit
```

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

Fills out the set of actions available to the user. This hook is called during `https://developer.android.com/reference/kotlin/androidx/leanback/app/GuidedStepFragment#onCreate(android.os.Bundle)`. The default leaves the list of actions empty; subclasses should override.

| Parameters |
|---|---|
| `actions: (https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-mutable-list/index.html)https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<https://developer.android.com/reference/kotlin/androidx/leanback/widget/GuidedAction!>` | A non-null, empty list ready to be populated. |
| `savedInstanceState: https://developer.android.com/reference/android/os/Bundle.html?` | The saved instance state from onCreate. |

### onCreateActionsStylist

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

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

Creates the presenter used to style the guided actions panel. The default implementation returns a basic GuidedActionsStylist.

| Returns |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/leanback/widget/GuidedActionsStylist` | The GuidedActionsStylist used in this fragment. |

### 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)

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

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

Called by onCreateView to inflate background view. Default implementation loads view from which holds a reference to guidedStepBackground.

| Parameters |
|---|---|
| `inflater: https://developer.android.com/reference/android/view/LayoutInflater.html` | LayoutInflater to load background view. |
| `container: https://developer.android.com/reference/android/view/ViewGroup.html?` | Parent view of background view. |
| `savedInstanceState: https://developer.android.com/reference/android/os/Bundle.html?` |   |

| Returns |
|---|---|
| `https://developer.android.com/reference/android/view/View.html?` | Created background view or null if no background. |

### onCreateButtonActions

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 [onCreateButtonActions](https://developer.android.com/reference/kotlin/androidx/leanback/app/GuidedStepFragment#onCreateButtonActions(java.util.List<androidx.leanback.widget.GuidedAction>,android.os.Bundle))(
    actions: (Mutable)List<GuidedAction!>,
    savedInstanceState: Bundle?
): Unit
```

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

Fills out the set of actions shown at right available to the user. This hook is called during `https://developer.android.com/reference/kotlin/androidx/leanback/app/GuidedStepFragment#onCreate(android.os.Bundle)`. The default leaves the list of actions empty; subclasses may override.

| Parameters |
|---|---|
| `actions: (https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-mutable-list/index.html)https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<https://developer.android.com/reference/kotlin/androidx/leanback/widget/GuidedAction!>` | A non-null, empty list ready to be populated. |
| `savedInstanceState: https://developer.android.com/reference/android/os/Bundle.html?` | The saved instance state from onCreate. |

### onCreateButtonActionsStylist

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

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

Creates the presenter used to style a sided actions panel for button only. The default implementation returns a basic GuidedActionsStylist.

| Returns |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/leanback/widget/GuidedActionsStylist` | The GuidedActionsStylist used in this fragment. |

### onCreateGuidance

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 [onCreateGuidance](https://developer.android.com/reference/kotlin/androidx/leanback/app/GuidedStepFragment#onCreateGuidance(android.os.Bundle))(savedInstanceState: Bundle?): GuidanceStylist.Guidance
```

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

Returns the information required to provide guidance to the user. This hook is called during `https://developer.android.com/reference/kotlin/androidx/leanback/app/GuidedStepFragment#onCreateView(android.view.LayoutInflater,android.view.ViewGroup,android.os.Bundle)`. May be overridden to return a custom subclass of `https://developer.android.com/reference/kotlin/androidx/leanback/widget/GuidanceStylist.Guidance` for use in a subclass of `https://developer.android.com/reference/kotlin/androidx/leanback/widget/GuidanceStylist`. The default returns a Guidance object with empty fields; subclasses should override.

| Parameters |
|---|---|
| `savedInstanceState: https://developer.android.com/reference/android/os/Bundle.html?` | The saved instance state from onCreateView. |

| Returns |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/leanback/widget/GuidanceStylist.Guidance` | The Guidance object representing the information used to guide the user. |

### onCreateGuidanceStylist

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

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

Creates the presenter used to style the guidance panel. The default implementation returns a basic GuidanceStylist.

| Returns |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/leanback/widget/GuidanceStylist` | The GuidanceStylist used in this fragment. |

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

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

### onDestroyView

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

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

### onGuidedActionClicked

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 [onGuidedActionClicked](https://developer.android.com/reference/kotlin/androidx/leanback/app/GuidedStepFragment#onGuidedActionClicked(androidx.leanback.widget.GuidedAction))(action: GuidedAction): Unit
```

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

Callback invoked when an action is taken by the user. Subclasses should override in order to act on the user's decisions.

| Parameters |
|---|---|
| `action: https://developer.android.com/reference/kotlin/androidx/leanback/widget/GuidedAction` | The chosen action. |

### onGuidedActionEditCanceled

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 [onGuidedActionEditCanceled](https://developer.android.com/reference/kotlin/androidx/leanback/app/GuidedStepFragment#onGuidedActionEditCanceled(androidx.leanback.widget.GuidedAction))(action: GuidedAction): Unit
```

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

Callback invoked when an action has been canceled editing, for example when user closes IME window by BACK key. Default implementation calls deprecated method `https://developer.android.com/reference/kotlin/androidx/leanback/app/GuidedStepFragment#onGuidedActionEdited(androidx.leanback.widget.GuidedAction)`.

| Parameters |
|---|---|
| `action: https://developer.android.com/reference/kotlin/androidx/leanback/widget/GuidedAction` | The action which has been canceled editing. |

### onGuidedActionEdited

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 [onGuidedActionEdited](https://developer.android.com/reference/kotlin/androidx/leanback/app/GuidedStepFragment#onGuidedActionEdited(androidx.leanback.widget.GuidedAction))(action: GuidedAction!): Unit
```

> [!CAUTION]
> **This function is deprecated.**   
>
> Override `https://developer.android.com/reference/kotlin/androidx/leanback/app/GuidedStepFragment#onGuidedActionEditedAndProceed(androidx.leanback.widget.GuidedAction)` and/or `https://developer.android.com/reference/kotlin/androidx/leanback/app/GuidedStepFragment#onGuidedActionEditCanceled(androidx.leanback.widget.GuidedAction)`.

Callback invoked when an action's title or description has been edited, this happens either when user clicks confirm button in IME or user closes IME window by BACK key.

### onGuidedActionEditedAndProceed

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 [onGuidedActionEditedAndProceed](https://developer.android.com/reference/kotlin/androidx/leanback/app/GuidedStepFragment#onGuidedActionEditedAndProceed(androidx.leanback.widget.GuidedAction))(action: GuidedAction): Long
```

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

Callback invoked when an action has been edited, for example when user clicks confirm button in IME window. Default implementation calls deprecated method `https://developer.android.com/reference/kotlin/androidx/leanback/app/GuidedStepFragment#onGuidedActionEdited(androidx.leanback.widget.GuidedAction)` and returns `https://developer.android.com/reference/kotlin/androidx/leanback/widget/GuidedAction#ACTION_ID_NEXT()`.

| Parameters |
|---|---|
| `action: https://developer.android.com/reference/kotlin/androidx/leanback/widget/GuidedAction` | The action that has been edited. |

| Returns |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html` | ID of the action will be focused or `https://developer.android.com/reference/kotlin/androidx/leanback/widget/GuidedAction#ACTION_ID_NEXT()`, `https://developer.android.com/reference/kotlin/androidx/leanback/widget/GuidedAction#ACTION_ID_CURRENT()`. |

### onGuidedActionFocused

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 [onGuidedActionFocused](https://developer.android.com/reference/kotlin/androidx/leanback/app/GuidedStepFragment#onGuidedActionFocused(androidx.leanback.widget.GuidedAction))(action: GuidedAction): Unit
```

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

Callback invoked when an action is focused (made to be the current selection) by the user.

### 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/GuidedStepFragment#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. |

### onResume

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

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

### 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/GuidedStepFragment#onSaveInstanceState(android.os.Bundle))(outState: Bundle!): Unit
```

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

### onSubGuidedActionClicked

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 [onSubGuidedActionClicked](https://developer.android.com/reference/kotlin/androidx/leanback/app/GuidedStepFragment#onSubGuidedActionClicked(androidx.leanback.widget.GuidedAction))(action: GuidedAction): Boolean
```

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

Callback invoked when an action in sub actions is taken by the user. Subclasses should override in order to act on the user's decisions. Default return value is true to close the sub actions list.

| Parameters |
|---|---|
| `action: https://developer.android.com/reference/kotlin/androidx/leanback/widget/GuidedAction` | The chosen action. |

| Returns |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | true to collapse the sub actions list, false to keep it expanded. |

### openInEditMode

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 [openInEditMode](https://developer.android.com/reference/kotlin/androidx/leanback/app/GuidedStepFragment#openInEditMode(androidx.leanback.widget.GuidedAction))(action: GuidedAction?): Unit
```

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

Opens the provided action in edit mode and raises ime. This can be used to programmatically skip the extra click required to go into edit mode. This method can be invoked in `https://developer.android.com/reference/kotlin/androidx/leanback/app/GuidedStepFragment#onCreateView(android.view.LayoutInflater,android.view.ViewGroup,android.os.Bundle)`.

### popBackStackToGuidedStepFragment

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 [popBackStackToGuidedStepFragment](https://developer.android.com/reference/kotlin/androidx/leanback/app/GuidedStepFragment#popBackStackToGuidedStepFragment(java.lang.Class<?>,int))(
    guidedStepFragmentClass: Class<*>,
    flags: Int
): Unit
```

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

Convenient method to pop to fragment with Given class.

| Parameters |
|---|---|
| `guidedStepFragmentClass: https://developer.android.com/reference/java/lang/Class.html<*>` | Name of the Class of GuidedStepFragment to pop to. |
| `flags: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | Either 0 or `https://developer.android.com/reference/android/app/FragmentManager.html#POP_BACK_STACK_INCLUSIVE`. |

### setActions

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 [setActions](https://developer.android.com/reference/kotlin/androidx/leanback/app/GuidedStepFragment#setActions(java.util.List<androidx.leanback.widget.GuidedAction>))(actions: (Mutable)List<GuidedAction!>): Unit
```

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

Sets the list of GuidedActions that the user may take in this fragment. Uses DiffCallback set by `https://developer.android.com/reference/kotlin/androidx/leanback/app/GuidedStepFragment#setActionsDiffCallback(androidx.leanback.widget.DiffCallback<androidx.leanback.widget.GuidedAction>)`.

| Parameters |
|---|---|
| `actions: (https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-mutable-list/index.html)https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<https://developer.android.com/reference/kotlin/androidx/leanback/widget/GuidedAction!>` | The list of GuidedActions for this fragment. |

### setActionsDiffCallback

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 [setActionsDiffCallback](https://developer.android.com/reference/kotlin/androidx/leanback/app/GuidedStepFragment#setActionsDiffCallback(androidx.leanback.widget.DiffCallback<androidx.leanback.widget.GuidedAction>))(diffCallback: DiffCallback<GuidedAction!>?): Unit
```

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

Sets the RecyclerView DiffCallback used when `https://developer.android.com/reference/kotlin/androidx/leanback/app/GuidedStepFragment#setActions(java.util.List<androidx.leanback.widget.GuidedAction>)` is called. By default GuidedStepFragment uses `https://developer.android.com/reference/kotlin/androidx/leanback/widget/GuidedActionDiffCallback`. Sets it to null if app wants to refresh the whole list.

| Parameters |
|---|---|
| `diffCallback: https://developer.android.com/reference/kotlin/androidx/leanback/widget/DiffCallback<https://developer.android.com/reference/kotlin/androidx/leanback/widget/GuidedAction!>?` | DiffCallback used in `https://developer.android.com/reference/kotlin/androidx/leanback/app/GuidedStepFragment#setActions(java.util.List<androidx.leanback.widget.GuidedAction>)`. |

### setButtonActions

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 [setButtonActions](https://developer.android.com/reference/kotlin/androidx/leanback/app/GuidedStepFragment#setButtonActions(java.util.List<androidx.leanback.widget.GuidedAction>))(actions: (Mutable)List<GuidedAction!>): Unit
```

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

Sets the list of button GuidedActions that the user may take in this fragment.

| Parameters |
|---|---|
| `actions: (https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-mutable-list/index.html)https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<https://developer.android.com/reference/kotlin/androidx/leanback/widget/GuidedAction!>` | The list of button GuidedActions for this fragment. |

### setSelectedActionPosition

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

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

Scrolls the action list to the position indicated, selecting that action's view.

| Parameters |
|---|---|
| `position: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | The integer position of the action of interest. |

### setSelectedButtonActionPosition

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

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

Scrolls the action list to the position indicated, selecting that button action's view.

| Parameters |
|---|---|
| `position: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | The integer position of the button action of interest. |

### setUiStyle

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

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

Set UI style to fragment arguments. Default value is `https://developer.android.com/reference/kotlin/androidx/leanback/app/GuidedStepFragment#UI_STYLE_ENTRANCE()` when fragment is first initialized. UI style is used to choose different fragment transition animations and determine if this is the first GuidedStepFragment on backstack. In most cases app does not directly call this method, app calls helper function `https://developer.android.com/reference/kotlin/androidx/leanback/app/GuidedStepFragment#add(android.app.FragmentManager,androidx.leanback.app.GuidedStepFragment,int)`. However if the app creates Fragment transaction and controls backstack by itself, it would need call setUiStyle() to select the fragment transition to use.

| Parameters |
|---|---|
| `style: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/leanback/app/GuidedStepFragment#UI_STYLE_ACTIVITY_ROOT()``https://developer.android.com/reference/kotlin/androidx/leanback/app/GuidedStepFragment#UI_STYLE_REPLACE()` or `https://developer.android.com/reference/kotlin/androidx/leanback/app/GuidedStepFragment#UI_STYLE_ENTRANCE()`. |

## Protected functions

### onAddSharedElementTransition

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 [onAddSharedElementTransition](https://developer.android.com/reference/kotlin/androidx/leanback/app/GuidedStepFragment#onAddSharedElementTransition(android.app.FragmentTransaction,androidx.leanback.app.GuidedStepFragment))(
    ft: FragmentTransaction,
    disappearing: GuidedStepFragment
): Unit
```

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

Called when this fragment is added to FragmentTransaction with `https://developer.android.com/reference/kotlin/androidx/leanback/app/GuidedStepFragment#UI_STYLE_REPLACE()` (aka when the GuidedStepFragment replacing an existing GuidedStepFragment). Default implementation establishes connections between action background views to morph action background bounds change from disappearing GuidedStepFragment into this GuidedStepFragment. The default implementation heavily relies on `https://developer.android.com/reference/kotlin/androidx/leanback/widget/GuidedActionsStylist`'s layout, app may override this method when modifying the default layout of `https://developer.android.com/reference/kotlin/androidx/leanback/widget/GuidedActionsStylist`.

| Parameters |
|---|---|
| `ft: https://developer.android.com/reference/android/app/FragmentTransaction.html` | The FragmentTransaction to add shared element. |
| `disappearing: https://developer.android.com/reference/kotlin/androidx/leanback/app/GuidedStepFragment` | The disappearing fragment. |

| See also |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/leanback/widget/GuidedActionsStylist` |   |
| `https://developer.android.com/reference/kotlin/androidx/leanback/app/GuidedStepFragment#onProvideFragmentTransitions()` |   |

### onProvideFragmentTransitions

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

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

Called by Constructor to provide fragment transitions. The default implementation assigns transitions based on `https://developer.android.com/reference/kotlin/androidx/leanback/app/GuidedStepFragment#getUiStyle()`:

- `https://developer.android.com/reference/kotlin/androidx/leanback/app/GuidedStepFragment#UI_STYLE_REPLACE()` Slide from/to end(right) for enter transition, slide from/to start(left) for exit transition, shared element enter transition is set to ChangeBounds.
- `https://developer.android.com/reference/kotlin/androidx/leanback/app/GuidedStepFragment#UI_STYLE_ENTRANCE()` Enter transition is set to slide from both sides, exit transition is same as `https://developer.android.com/reference/kotlin/androidx/leanback/app/GuidedStepFragment#UI_STYLE_REPLACE()`, no shared element enter transition.
- `https://developer.android.com/reference/kotlin/androidx/leanback/app/GuidedStepFragment#UI_STYLE_ACTIVITY_ROOT()` Enter transition is set to null and app should rely on activity transition, exit transition is same as `https://developer.android.com/reference/kotlin/androidx/leanback/app/GuidedStepFragment#UI_STYLE_REPLACE()`, no shared element enter transition.

The default implementation heavily relies on `https://developer.android.com/reference/kotlin/androidx/leanback/widget/GuidedActionsStylist` and `https://developer.android.com/reference/kotlin/androidx/leanback/widget/GuidanceStylist` layout, app may override this method when modifying the default layout of `https://developer.android.com/reference/kotlin/androidx/leanback/widget/GuidedActionsStylist` or `https://developer.android.com/reference/kotlin/androidx/leanback/widget/GuidanceStylist`.

TIP: because the fragment view is removed during fragment transition, in general app cannot use two Visibility transition together. Workaround is to create your own Visibility transition that controls multiple animators (e.g. slide and fade animation in one Transition class).