Språk

Fragment.OnAttachFragment(Fragment) Method

Definition

Called when a fragment is attached as a child of this fragment.

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

Parameters

childFragment
Fragment

child fragment being attached

Attributes

Remarks

Called when a fragment is attached as a child of this fragment. This is called after the child's OnAttach(Context) and, if the child has not yet been created, before its OnCreate(Bundle).

Android reference for android.app.Fragment.onAttachFragment.

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