Fragment.OnDetach Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Called when the fragment is being detached from its host.
[Android.Runtime.Register("onDetach", "()V", "GetOnDetachHandler")]
public virtual void OnDetach();
[<Android.Runtime.Register("onDetach", "()V", "GetOnDetachHandler")>]
abstract member OnDetach : unit -> unit
override this.OnDetach : unit -> unit
- Attributes
Remarks
Called when the fragment is being detached from its host. This is called after OnDestroy(), except when the fragment instance is retained across activity recreation; see RetainInstance. If you override this method, call the base implementation.
Android reference for android.app.Fragment.onDetach.
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.