FragmentController.AttachHost(Fragment) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
将此控制器的主机附加到 FragmentManager。
[Android.Runtime.Register("attachHost", "(Landroid/app/Fragment;)V", "GetAttachHost_Landroid_app_Fragment_Handler", ApiSince=23)]
public virtual void AttachHost(Android.App.Fragment? parent);
[<Android.Runtime.Register("attachHost", "(Landroid/app/Fragment;)V", "GetAttachHost_Landroid_app_Fragment_Handler", ApiSince=23)>]
abstract member AttachHost : Android.App.Fragment -> unit
override this.AttachHost : Android.App.Fragment -> unit
参数
- parent
- Fragment
片段
- 特性
注解
将此控制器的主机附加到 FragmentManager。 必须先附加主机,然后才能使用 FragmentManager 管理片段。
Android 参考。android.app.FragmentController.attachHost
本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。