Fragment.OnAttach Fragment.OnAttach Method

Definition

Overloads

OnAttach(Activity) OnAttach(Activity)
OnAttach(Context) OnAttach(Context)

OnAttach(Activity) OnAttach(Activity)

Warning

This API is now obsolete.

[Android.Runtime.Register("onAttach", "(Landroid/app/Activity;)V", "GetOnAttach_Landroid_app_Activity_Handler")]
[System.Obsolete("deprecated")]
public virtual void OnAttach (Android.App.Activity activity);
abstract member OnAttach : Android.App.Activity -> unit
override this.OnAttach : Android.App.Activity -> unit

Parameters

activity
Activity Activity

Remarks

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.

OnAttach(Context) OnAttach(Context)

[Android.Runtime.Register("onAttach", "(Landroid/content/Context;)V", "GetOnAttach_Landroid_content_Context_Handler", ApiSince=23)]
public virtual void OnAttach (Android.Content.Context context);
abstract member OnAttach : Android.Content.Context -> unit
override this.OnAttach : Android.Content.Context -> unit

Parameters

context
Context Context

Remarks

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