# FragmentManager.FragmentLifecycleCallbacks

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

*** ** * ** ***


```
public abstract class FragmentManager.FragmentLifecycleCallbacks
```

<br />

*** ** * ** ***

Callback interface for listening to fragment state changes that happen within a given FragmentManager.

## Summary

| ### Public constructors |
|---|
| `https://developer.android.com/reference/androidx/fragment/app/FragmentManager.FragmentLifecycleCallbacks#FragmentLifecycleCallbacks()()` |

| ### Public methods |
|---|---|
| `void` | `[onFragmentActivityCreated](https://developer.android.com/reference/androidx/fragment/app/FragmentManager.FragmentLifecycleCallbacks#onFragmentActivityCreated(androidx.fragment.app.FragmentManager,androidx.fragment.app.Fragment,android.os.Bundle))( @https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/fragment/app/FragmentManager fm, @https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/fragment/app/Fragment f, @https://jspecify.dev/docs/api/org/jspecify/annotations/Nullable.html https://developer.android.com/reference/android/os/Bundle.html savedInstanceState )` **This method is deprecated.** To get a callback specifically when a Fragment activity's `https://developer.android.com/reference/android/app/Activity.html#onCreate(android.os.Bundle)` is called, register a `https://developer.android.com/reference/androidx/lifecycle/LifecycleObserver` on the Activity's `https://developer.android.com/reference/androidx/lifecycle/Lifecycle` in `https://developer.android.com/reference/androidx/fragment/app/FragmentManager.FragmentLifecycleCallbacks#onFragmentAttached(androidx.fragment.app.FragmentManager,androidx.fragment.app.Fragment,android.content.Context)`, removing it when it receives the `https://developer.android.com/reference/androidx/lifecycle/Lifecycle.State#CREATED` callback. <br /> |
| `void` | `https://developer.android.com/reference/androidx/fragment/app/FragmentManager.FragmentLifecycleCallbacks#onFragmentAttached(androidx.fragment.app.FragmentManager,androidx.fragment.app.Fragment,android.content.Context)( @https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/fragment/app/FragmentManager fm, @https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/fragment/app/Fragment f, @https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/android/content/Context.html context )` Called after the fragment has been attached to its host. |
| `void` | `https://developer.android.com/reference/androidx/fragment/app/FragmentManager.FragmentLifecycleCallbacks#onFragmentCreated(androidx.fragment.app.FragmentManager,androidx.fragment.app.Fragment,android.os.Bundle)( @https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/fragment/app/FragmentManager fm, @https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/fragment/app/Fragment f, @https://jspecify.dev/docs/api/org/jspecify/annotations/Nullable.html https://developer.android.com/reference/android/os/Bundle.html savedInstanceState )` Called after the fragment has returned from the FragmentManager's call to `https://developer.android.com/reference/androidx/fragment/app/Fragment#onCreate(android.os.Bundle)`. |
| `void` | `https://developer.android.com/reference/androidx/fragment/app/FragmentManager.FragmentLifecycleCallbacks#onFragmentDestroyed(androidx.fragment.app.FragmentManager,androidx.fragment.app.Fragment)(@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/fragment/app/FragmentManager fm, @https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/fragment/app/Fragment f)` Called after the fragment has returned from the FragmentManager's call to `https://developer.android.com/reference/androidx/fragment/app/Fragment#onDestroy()`. |
| `void` | `https://developer.android.com/reference/androidx/fragment/app/FragmentManager.FragmentLifecycleCallbacks#onFragmentDetached(androidx.fragment.app.FragmentManager,androidx.fragment.app.Fragment)(@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/fragment/app/FragmentManager fm, @https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/fragment/app/Fragment f)` Called after the fragment has returned from the FragmentManager's call to `https://developer.android.com/reference/androidx/fragment/app/Fragment#onDetach()`. |
| `void` | `https://developer.android.com/reference/androidx/fragment/app/FragmentManager.FragmentLifecycleCallbacks#onFragmentPaused(androidx.fragment.app.FragmentManager,androidx.fragment.app.Fragment)(@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/fragment/app/FragmentManager fm, @https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/fragment/app/Fragment f)` Called after the fragment has returned from the FragmentManager's call to `https://developer.android.com/reference/androidx/fragment/app/Fragment#onPause()`. |
| `void` | `https://developer.android.com/reference/androidx/fragment/app/FragmentManager.FragmentLifecycleCallbacks#onFragmentPreAttached(androidx.fragment.app.FragmentManager,androidx.fragment.app.Fragment,android.content.Context)( @https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/fragment/app/FragmentManager fm, @https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/fragment/app/Fragment f, @https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/android/content/Context.html context )` Called right before the fragment's `https://developer.android.com/reference/androidx/fragment/app/Fragment#onAttach(android.content.Context)` method is called. |
| `void` | `https://developer.android.com/reference/androidx/fragment/app/FragmentManager.FragmentLifecycleCallbacks#onFragmentPreCreated(androidx.fragment.app.FragmentManager,androidx.fragment.app.Fragment,android.os.Bundle)( @https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/fragment/app/FragmentManager fm, @https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/fragment/app/Fragment f, @https://jspecify.dev/docs/api/org/jspecify/annotations/Nullable.html https://developer.android.com/reference/android/os/Bundle.html savedInstanceState )` Called right before the fragment's `https://developer.android.com/reference/androidx/fragment/app/Fragment#onCreate(android.os.Bundle)` method is called. |
| `void` | `https://developer.android.com/reference/androidx/fragment/app/FragmentManager.FragmentLifecycleCallbacks#onFragmentResumed(androidx.fragment.app.FragmentManager,androidx.fragment.app.Fragment)(@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/fragment/app/FragmentManager fm, @https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/fragment/app/Fragment f)` Called after the fragment has returned from the FragmentManager's call to `https://developer.android.com/reference/androidx/fragment/app/Fragment#onResume()`. |
| `void` | `https://developer.android.com/reference/androidx/fragment/app/FragmentManager.FragmentLifecycleCallbacks#onFragmentSaveInstanceState(androidx.fragment.app.FragmentManager,androidx.fragment.app.Fragment,android.os.Bundle)( @https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/fragment/app/FragmentManager fm, @https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/fragment/app/Fragment f, @https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/android/os/Bundle.html outState )` Called after the fragment has returned from the FragmentManager's call to `https://developer.android.com/reference/androidx/fragment/app/Fragment#onSaveInstanceState(android.os.Bundle)`. |
| `void` | `https://developer.android.com/reference/androidx/fragment/app/FragmentManager.FragmentLifecycleCallbacks#onFragmentStarted(androidx.fragment.app.FragmentManager,androidx.fragment.app.Fragment)(@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/fragment/app/FragmentManager fm, @https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/fragment/app/Fragment f)` Called after the fragment has returned from the FragmentManager's call to `https://developer.android.com/reference/androidx/fragment/app/Fragment#onStart()`. |
| `void` | `https://developer.android.com/reference/androidx/fragment/app/FragmentManager.FragmentLifecycleCallbacks#onFragmentStopped(androidx.fragment.app.FragmentManager,androidx.fragment.app.Fragment)(@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/fragment/app/FragmentManager fm, @https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/fragment/app/Fragment f)` Called after the fragment has returned from the FragmentManager's call to `https://developer.android.com/reference/androidx/fragment/app/Fragment#onStop()`. |
| `void` | `https://developer.android.com/reference/androidx/fragment/app/FragmentManager.FragmentLifecycleCallbacks#onFragmentViewCreated(androidx.fragment.app.FragmentManager,androidx.fragment.app.Fragment,android.view.View,android.os.Bundle)( @https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/fragment/app/FragmentManager fm, @https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/fragment/app/Fragment f, @https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/android/view/View.html v, @https://jspecify.dev/docs/api/org/jspecify/annotations/Nullable.html https://developer.android.com/reference/android/os/Bundle.html savedInstanceState )` Called after the fragment has returned a non-null view from the FragmentManager's request to `https://developer.android.com/reference/androidx/fragment/app/Fragment#onCreateView(android.view.LayoutInflater,android.view.ViewGroup,android.os.Bundle)`. |
| `void` | `https://developer.android.com/reference/androidx/fragment/app/FragmentManager.FragmentLifecycleCallbacks#onFragmentViewDestroyed(androidx.fragment.app.FragmentManager,androidx.fragment.app.Fragment)(@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/fragment/app/FragmentManager fm, @https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/fragment/app/Fragment f)` Called after the fragment has returned from the FragmentManager's call to `https://developer.android.com/reference/androidx/fragment/app/Fragment#onDestroyView()`. |

## Public constructors

### FragmentLifecycleCallbacks

Added in 1.1.0

```
public FragmentLifecycleCallbacks()
```

## Public methods

### onFragmentActivityCreated

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

```
public void [onFragmentActivityCreated](https://developer.android.com/reference/androidx/fragment/app/FragmentManager.FragmentLifecycleCallbacks#onFragmentActivityCreated(androidx.fragment.app.FragmentManager,androidx.fragment.app.Fragment,android.os.Bundle))(
    @NonNull FragmentManager fm,
    @NonNull Fragment f,
    @Nullable Bundle savedInstanceState
)
```

> [!CAUTION]
> **This method is deprecated.**   
>
> To get a callback specifically when a Fragment activity's `https://developer.android.com/reference/android/app/Activity.html#onCreate(android.os.Bundle)` is called, register a `https://developer.android.com/reference/androidx/lifecycle/LifecycleObserver` on the Activity's `https://developer.android.com/reference/androidx/lifecycle/Lifecycle` in `https://developer.android.com/reference/androidx/fragment/app/FragmentManager.FragmentLifecycleCallbacks#onFragmentAttached(androidx.fragment.app.FragmentManager,androidx.fragment.app.Fragment,android.content.Context)`, removing it when it receives the `https://developer.android.com/reference/androidx/lifecycle/Lifecycle.State#CREATED` callback.

Called after the fragment has returned from the FragmentManager's call to `https://developer.android.com/reference/androidx/fragment/app/Fragment#onActivityCreated(android.os.Bundle)`. This will only happen once for any given fragment instance, though the fragment may be attached and detached multiple times.

| Parameters |
|---|---|
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/fragment/app/FragmentManager fm` | Host FragmentManager |
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/fragment/app/Fragment f` | Fragment changing state |
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/Nullable.html https://developer.android.com/reference/android/os/Bundle.html savedInstanceState` | Saved instance bundle from a previous instance |

### onFragmentAttached

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

```
public void onFragmentAttached(
    @NonNull FragmentManager fm,
    @NonNull Fragment f,
    @NonNull Context context
)
```

Called after the fragment has been attached to its host. Its host will have had `onAttachFragment` called before this call happens.

| Parameters |
|---|---|
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/fragment/app/FragmentManager fm` | Host FragmentManager |
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/fragment/app/Fragment f` | Fragment changing state |
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/android/content/Context.html context` | Context that the Fragment was attached to |

### onFragmentCreated

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

```
public void onFragmentCreated(
    @NonNull FragmentManager fm,
    @NonNull Fragment f,
    @Nullable Bundle savedInstanceState
)
```

Called after the fragment has returned from the FragmentManager's call to `https://developer.android.com/reference/androidx/fragment/app/Fragment#onCreate(android.os.Bundle)`. This will only happen once for any given fragment instance, though the fragment may be attached and detached multiple times.

| Parameters |
|---|---|
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/fragment/app/FragmentManager fm` | Host FragmentManager |
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/fragment/app/Fragment f` | Fragment changing state |
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/Nullable.html https://developer.android.com/reference/android/os/Bundle.html savedInstanceState` | Saved instance bundle from a previous instance |

### onFragmentDestroyed

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

```
public void onFragmentDestroyed(@NonNull FragmentManager fm, @NonNull Fragment f)
```

Called after the fragment has returned from the FragmentManager's call to `https://developer.android.com/reference/androidx/fragment/app/Fragment#onDestroy()`.

| Parameters |
|---|---|
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/fragment/app/FragmentManager fm` | Host FragmentManager |
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/fragment/app/Fragment f` | Fragment changing state |

### onFragmentDetached

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

```
public void onFragmentDetached(@NonNull FragmentManager fm, @NonNull Fragment f)
```

Called after the fragment has returned from the FragmentManager's call to `https://developer.android.com/reference/androidx/fragment/app/Fragment#onDetach()`.

| Parameters |
|---|---|
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/fragment/app/FragmentManager fm` | Host FragmentManager |
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/fragment/app/Fragment f` | Fragment changing state |

### onFragmentPaused

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

```
public void onFragmentPaused(@NonNull FragmentManager fm, @NonNull Fragment f)
```

Called after the fragment has returned from the FragmentManager's call to `https://developer.android.com/reference/androidx/fragment/app/Fragment#onPause()`.

| Parameters |
|---|---|
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/fragment/app/FragmentManager fm` | Host FragmentManager |
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/fragment/app/Fragment f` | Fragment changing state |

### onFragmentPreAttached

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

```
public void onFragmentPreAttached(
    @NonNull FragmentManager fm,
    @NonNull Fragment f,
    @NonNull Context context
)
```

Called right before the fragment's `https://developer.android.com/reference/androidx/fragment/app/Fragment#onAttach(android.content.Context)` method is called. This is a good time to inject any required dependencies or perform other configuration for the fragment before any of the fragment's lifecycle methods are invoked.

| Parameters |
|---|---|
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/fragment/app/FragmentManager fm` | Host FragmentManager |
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/fragment/app/Fragment f` | Fragment changing state |
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/android/content/Context.html context` | Context that the Fragment is being attached to |

### onFragmentPreCreated

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

```
public void onFragmentPreCreated(
    @NonNull FragmentManager fm,
    @NonNull Fragment f,
    @Nullable Bundle savedInstanceState
)
```

Called right before the fragment's `https://developer.android.com/reference/androidx/fragment/app/Fragment#onCreate(android.os.Bundle)` method is called. This is a good time to inject any required dependencies or perform other configuration for the fragment.

| Parameters |
|---|---|
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/fragment/app/FragmentManager fm` | Host FragmentManager |
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/fragment/app/Fragment f` | Fragment changing state |
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/Nullable.html https://developer.android.com/reference/android/os/Bundle.html savedInstanceState` | Saved instance bundle from a previous instance |

### onFragmentResumed

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

```
public void onFragmentResumed(@NonNull FragmentManager fm, @NonNull Fragment f)
```

Called after the fragment has returned from the FragmentManager's call to `https://developer.android.com/reference/androidx/fragment/app/Fragment#onResume()`.

| Parameters |
|---|---|
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/fragment/app/FragmentManager fm` | Host FragmentManager |
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/fragment/app/Fragment f` | Fragment changing state |

### onFragmentSaveInstanceState

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

```
public void onFragmentSaveInstanceState(
    @NonNull FragmentManager fm,
    @NonNull Fragment f,
    @NonNull Bundle outState
)
```

Called after the fragment has returned from the FragmentManager's call to `https://developer.android.com/reference/androidx/fragment/app/Fragment#onSaveInstanceState(android.os.Bundle)`.

| Parameters |
|---|---|
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/fragment/app/FragmentManager fm` | Host FragmentManager |
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/fragment/app/Fragment f` | Fragment changing state |
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/android/os/Bundle.html outState` | Saved state bundle for the fragment |

### onFragmentStarted

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

```
public void onFragmentStarted(@NonNull FragmentManager fm, @NonNull Fragment f)
```

Called after the fragment has returned from the FragmentManager's call to `https://developer.android.com/reference/androidx/fragment/app/Fragment#onStart()`.

| Parameters |
|---|---|
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/fragment/app/FragmentManager fm` | Host FragmentManager |
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/fragment/app/Fragment f` | Fragment changing state |

### onFragmentStopped

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

```
public void onFragmentStopped(@NonNull FragmentManager fm, @NonNull Fragment f)
```

Called after the fragment has returned from the FragmentManager's call to `https://developer.android.com/reference/androidx/fragment/app/Fragment#onStop()`.

| Parameters |
|---|---|
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/fragment/app/FragmentManager fm` | Host FragmentManager |
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/fragment/app/Fragment f` | Fragment changing state |

### onFragmentViewCreated

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

```
public void onFragmentViewCreated(
    @NonNull FragmentManager fm,
    @NonNull Fragment f,
    @NonNull View v,
    @Nullable Bundle savedInstanceState
)
```

Called after the fragment has returned a non-null view from the FragmentManager's request to `https://developer.android.com/reference/androidx/fragment/app/Fragment#onCreateView(android.view.LayoutInflater,android.view.ViewGroup,android.os.Bundle)`.

| Parameters |
|---|---|
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/fragment/app/FragmentManager fm` | Host FragmentManager |
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/fragment/app/Fragment f` | Fragment that created and owns the view |
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/android/view/View.html v` | View returned by the fragment |
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/Nullable.html https://developer.android.com/reference/android/os/Bundle.html savedInstanceState` | Saved instance bundle from a previous instance |

### onFragmentViewDestroyed

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

```
public void onFragmentViewDestroyed(@NonNull FragmentManager fm, @NonNull Fragment f)
```

Called after the fragment has returned from the FragmentManager's call to `https://developer.android.com/reference/androidx/fragment/app/Fragment#onDestroyView()`.

| Parameters |
|---|---|
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/fragment/app/FragmentManager fm` | Host FragmentManager |
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/fragment/app/Fragment f` | Fragment changing state |