Udostępnij za pośrednictwem


FragmentManager.FragmentLifecycleCallbacks.OnFragmentAttached Method

Definition

Called after the fragment has been attached to its host.

[Android.Runtime.Register("onFragmentAttached", "(Landroid/app/FragmentManager;Landroid/app/Fragment;Landroid/content/Context;)V", "GetOnFragmentAttached_Landroid_app_FragmentManager_Landroid_app_Fragment_Landroid_content_Context_Handler", ApiSince=26)]
public virtual void OnFragmentAttached (Android.App.FragmentManager fm, Android.App.Fragment f, Android.Content.Context context);
[<Android.Runtime.Register("onFragmentAttached", "(Landroid/app/FragmentManager;Landroid/app/Fragment;Landroid/content/Context;)V", "GetOnFragmentAttached_Landroid_app_FragmentManager_Landroid_app_Fragment_Landroid_content_Context_Handler", ApiSince=26)>]
abstract member OnFragmentAttached : Android.App.FragmentManager * Android.App.Fragment * Android.Content.Context -> unit
override this.OnFragmentAttached : Android.App.FragmentManager * Android.App.Fragment * Android.Content.Context -> unit

Parameters

fm
FragmentManager

Host FragmentManager

f
Fragment

Fragment changing state

context
Context

Context that the Fragment was attached to

Attributes

Remarks

Called after the fragment has been attached to its host. Its host will have had onAttachFragment called before this call happens.

Java documentation for android.app.FragmentManager.FragmentLifecycleCallbacks.onFragmentAttached(android.app.FragmentManager, android.app.Fragment, android.content.Context).

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