FragmentController.AttachHost(Fragment) Method

Definition

Attaches the host to the FragmentManager for this controller.

[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

Parameters

parent
Fragment
Attributes

Remarks

Attaches the host to the FragmentManager for this controller. The host must be attached before the FragmentManager can be used to manage Fragments.

Java documentation for android.app.FragmentController.attachHost(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