FragmentManager.FragmentLifecycleCallbacks.OnFragmentAttached 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
在片段附加到其主机后调用。
[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
参数
Host FragmentManager
- f
- Fragment
片段更改状态
- context
- Context
片段附加到的上下文
- 属性
注解
在片段附加到其主机后调用。 在进行此调用之前,其主机将已 onAttachFragment
调用。
本页的某些部分是根据 Android 开放源代码项目创建和共享的工作进行的修改,并根据 Creative Commons 2.5 属性许可证中所述的术语使用。