# androidx.fragment.app

*** ** * ** ***

## Annotations

|---|---|
| `https://developer.android.com/reference/androidx/fragment/app/PredictiveBackControl` |   |

## Interfaces

|---|---|
| `https://developer.android.com/reference/androidx/fragment/app/FragmentManager.BackStackEntry` | Representation of an entry on the fragment back stack, as created with `https://developer.android.com/reference/androidx/fragment/app/FragmentTransaction#addToBackStack(java.lang.String)`. |
| `https://developer.android.com/reference/androidx/fragment/app/FragmentManager.OnBackStackChangedListener` | Interface to watch for changes to the back stack. |
| `https://developer.android.com/reference/androidx/fragment/app/FragmentOnAttachListener` | Listener for receiving a callback immediately following `https://developer.android.com/reference/androidx/fragment/app/Fragment#onAttach(android.content.Context)`. |
| `https://developer.android.com/reference/androidx/fragment/app/FragmentResultListener` | Listener for handling fragment results. |
| `https://developer.android.com/reference/androidx/fragment/app/FragmentResultOwner` | A class that manages passing data between fragments. |

## Classes

|---|---|
| `https://developer.android.com/reference/androidx/fragment/app/DialogFragment` | A fragment that displays a dialog window, floating in the foreground of its activity's window. |
| `https://developer.android.com/reference/androidx/fragment/app/Fragment` | Static library support version of the framework's `https://developer.android.com/reference/android/app/Fragment.html`. |
| `https://developer.android.com/reference/androidx/fragment/app/Fragment.SavedState` | State information that has been retrieved from a fragment instance through `https://developer.android.com/reference/androidx/fragment/app/FragmentManager#saveFragmentInstanceState(androidx.fragment.app.Fragment)`. |
| `https://developer.android.com/reference/androidx/fragment/app/FragmentActivity` | Base class for activities that want to use the support-based `https://developer.android.com/reference/androidx/fragment/app/Fragment`. |
| `https://developer.android.com/reference/androidx/fragment/app/FragmentContainer` | Callbacks to a `https://developer.android.com/reference/androidx/fragment/app/Fragment`'s container. |
| `https://developer.android.com/reference/androidx/fragment/app/FragmentContainerView` | FragmentContainerView is a customized Layout designed specifically for Fragments. |
| `https://developer.android.com/reference/androidx/fragment/app/FragmentController` | Provides integration points with a `https://developer.android.com/reference/androidx/fragment/app/FragmentManager` for a fragment host. |
| `https://developer.android.com/reference/androidx/fragment/app/FragmentFactory` | Interface used to control the instantiation of `https://developer.android.com/reference/androidx/fragment/app/Fragment` instances. |
| `https://developer.android.com/reference/androidx/fragment/app/FragmentHostCallback` | Integration points with the Fragment host. |
| `https://developer.android.com/reference/androidx/fragment/app/FragmentKt` |   |
| `https://developer.android.com/reference/androidx/fragment/app/FragmentManager` | Static library support version of the framework's `https://developer.android.com/reference/android/app/FragmentManager.html`. |
| `https://developer.android.com/reference/androidx/fragment/app/FragmentManager.FragmentLifecycleCallbacks` | Callback interface for listening to fragment state changes that happen within a given FragmentManager. |
| `https://developer.android.com/reference/androidx/fragment/app/FragmentManagerKt` |   |
| `https://developer.android.com/reference/androidx/fragment/app/FragmentManagerNonConfig` | **This class is deprecated.** Have your `https://developer.android.com/reference/androidx/fragment/app/FragmentHostCallback` implement `https://developer.android.com/reference/androidx/lifecycle/ViewModelStoreOwner` to automatically retain the Fragment's non configuration state. <br /> |
| `https://developer.android.com/reference/androidx/fragment/app/FragmentPagerAdapter` | **This class is deprecated.** Switch to `https://developer.android.com/reference/androidx/viewpager2/widget/ViewPager2` and use `https://developer.android.com/reference/androidx/viewpager2/adapter/FragmentStateAdapter` instead. <br /> |
| `https://developer.android.com/reference/androidx/fragment/app/FragmentStatePagerAdapter` | **This class is deprecated.** Switch to `https://developer.android.com/reference/androidx/viewpager2/widget/ViewPager2` and use `https://developer.android.com/reference/androidx/viewpager2/adapter/FragmentStateAdapter` instead. <br /> |
| `https://developer.android.com/reference/androidx/fragment/app/FragmentTabHost` | **This class is deprecated.** Use [TabLayout and ViewPager](https://developer.android.com/guide/navigation/navigation-swipe-view) instead. <br /> |
| `https://developer.android.com/reference/androidx/fragment/app/FragmentTransaction` | Static library support version of the framework's `https://developer.android.com/reference/android/app/FragmentTransaction.html`. |
| `https://developer.android.com/reference/androidx/fragment/app/FragmentTransactionKt` |   |
| `https://developer.android.com/reference/androidx/fragment/app/FragmentViewModelLazyKt` |   |
| `https://developer.android.com/reference/androidx/fragment/app/ListFragment` | Static library support version of the framework's `https://developer.android.com/reference/android/app/ListFragment.html`. |
| `https://developer.android.com/reference/androidx/fragment/app/ViewKt` |   |

## Exceptions

|---|---|
| `https://developer.android.com/reference/androidx/fragment/app/Fragment.InstantiationException` | Thrown by `https://developer.android.com/reference/androidx/fragment/app/FragmentFactory#instantiate(java.lang.ClassLoader,java.lang.String)` when there is an instantiation failure. |