語言

FragmentController.AttachHost(Fragment) 方法

定義

將主機連接到此控制器的 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

Fragment

屬性

備註

將主機連接到此控制器的 FragmentManager。 主機必須先連接,FragmentManager 才能用來管理碎片。

Android 參考資料。android.app.FragmentController.attachHost

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於