Share via


FragmentHostCallback.OnAttachFragment(Fragment) Method

Definition

Called when a Fragment is being attached to this host, immediately after the call to its Fragment#onAttach(Context) method and before Fragment#onCreate(Bundle).

[Android.Runtime.Register("onAttachFragment", "(Landroid/app/Fragment;)V", "GetOnAttachFragment_Landroid_app_Fragment_Handler", ApiSince=23)]
public virtual void OnAttachFragment (Android.App.Fragment? fragment);
[<Android.Runtime.Register("onAttachFragment", "(Landroid/app/Fragment;)V", "GetOnAttachFragment_Landroid_app_Fragment_Handler", ApiSince=23)>]
abstract member OnAttachFragment : Android.App.Fragment -> unit
override this.OnAttachFragment : Android.App.Fragment -> unit

Parameters

fragment
Fragment
Attributes

Remarks

Called when a Fragment is being attached to this host, immediately after the call to its Fragment#onAttach(Context) method and before Fragment#onCreate(Bundle).

Java documentation for android.app.FragmentHostCallback.onAttachFragment(android.app.Fragment).

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