Dela via


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 attached fragment's onAttach and before the attached fragment's onCreate if the fragment has not yet had a previous call to onCreate.

Java documentation for android.app.Fragment.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