Language

FragmentManager.FragmentLifecycleCallbacks.OnFragmentViewDestroyed Method

Definition

Called after the fragment has returned from the FragmentManager's call to Fragment#onDestroyView().

[Android.Runtime.Register("onFragmentViewDestroyed", "(Landroid/app/FragmentManager;Landroid/app/Fragment;)V", "GetOnFragmentViewDestroyed_Landroid_app_FragmentManager_Landroid_app_Fragment_Handler", ApiSince=26)]
public virtual void OnFragmentViewDestroyed(Android.App.FragmentManager fm, Android.App.Fragment f);
[<Android.Runtime.Register("onFragmentViewDestroyed", "(Landroid/app/FragmentManager;Landroid/app/Fragment;)V", "GetOnFragmentViewDestroyed_Landroid_app_FragmentManager_Landroid_app_Fragment_Handler", ApiSince=26)>]
abstract member OnFragmentViewDestroyed : Android.App.FragmentManager * Android.App.Fragment -> unit
override this.OnFragmentViewDestroyed : Android.App.FragmentManager * Android.App.Fragment -> unit

Parameters

fm
FragmentManager

Host FragmentManager

f
Fragment

Fragment changing state

Attributes

Remarks

Called after the fragment has returned from the FragmentManager's call to Fragment.onDestroyView().

Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.

Last updated 2026-08-03 UTC.

Android reference for android.app.FragmentManager.FragmentLifecycleCallbacks.onFragmentViewDestroyed.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to