Udostępnij za pośrednictwem


Fragment.Context Property

Definition

Return the Context this fragment is currently associated with.

public virtual Android.Content.Context? Context { [Android.Runtime.Register("getContext", "()Landroid/content/Context;", "GetGetContextHandler", ApiSince=23)] get; }
[<get: Android.Runtime.Register("getContext", "()Landroid/content/Context;", "GetGetContextHandler", ApiSince=23)>]
member this.Context : Android.Content.Context

Property Value

Attributes

Remarks

Return the Context this fragment is currently associated with.

Java documentation for android.app.Fragment.getContext().

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