다음을 통해 공유


Loader Constructors

Definition

Overloads

Loader(Context)

Stores away the application context associated with context.

Loader(IntPtr, JniHandleOwnership)

A constructor used when creating managed representations of JNI objects; called by the runtime.

Loader(Context)

Stores away the application context associated with context.

[Android.Runtime.Register(".ctor", "(Landroid/content/Context;)V", "")]
public Loader (Android.Content.Context? context);
[<Android.Runtime.Register(".ctor", "(Landroid/content/Context;)V", "")>]
new Android.Content.Loader : Android.Content.Context -> Android.Content.Loader

Parameters

context
Context

used to retrieve the application context.

Attributes

Remarks

Stores away the application context associated with context. Since Loaders can be used across multiple activities it's dangerous to store the context directly; always use #getContext() to retrieve the Loader's Context, don't use the constructor argument directly. The Context returned by #getContext is safe to use across Activity instances.

Java documentation for android.content.Loader.Loader(android.content.Context).

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

Loader(IntPtr, JniHandleOwnership)

A constructor used when creating managed representations of JNI objects; called by the runtime.

protected Loader (IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Android.Content.Loader : nativeint * Android.Runtime.JniHandleOwnership -> Android.Content.Loader

Parameters

javaReference
IntPtr

nativeint

A IntPtrcontaining a Java Native Interface (JNI) object reference.

transfer
JniHandleOwnership

A JniHandleOwnershipindicating how to handle javaReference

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