Udostępnij za pośrednictwem


CursorLoader Constructors

Definition

Overloads

CursorLoader(Context)

Creates an empty unspecified CursorLoader.

CursorLoader(IntPtr, JniHandleOwnership)

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

CursorLoader(Context, Uri, String[], String, String[], String)

Creates a fully-specified CursorLoader.

CursorLoader(Context)

Creates an empty unspecified CursorLoader.

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

Parameters

context
Context
Attributes

Remarks

Creates an empty unspecified CursorLoader. You must follow this with calls to #setUri(Uri), #setSelection(String), etc to specify the query to perform.

Java documentation for android.content.CursorLoader.CursorLoader(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

CursorLoader(IntPtr, JniHandleOwnership)

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

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

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

CursorLoader(Context, Uri, String[], String, String[], String)

Creates a fully-specified CursorLoader.

[Android.Runtime.Register(".ctor", "(Landroid/content/Context;Landroid/net/Uri;[Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;Ljava/lang/String;)V", "")]
public CursorLoader (Android.Content.Context? context, Android.Net.Uri? uri, string[]? projection, string? selection, string[]? selectionArgs, string? sortOrder);
[<Android.Runtime.Register(".ctor", "(Landroid/content/Context;Landroid/net/Uri;[Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;Ljava/lang/String;)V", "")>]
new Android.Content.CursorLoader : Android.Content.Context * Android.Net.Uri * string[] * string * string[] * string -> Android.Content.CursorLoader

Parameters

context
Context
uri
Uri
projection
String[]
selection
String
selectionArgs
String[]
sortOrder
String
Attributes

Remarks

Creates a fully-specified CursorLoader. See ContentResolver#query(Uri, String[], String, String[], String) ContentResolver.query() for documentation on the meaning of the parameters. These will be passed as-is to that call.

Java documentation for android.content.CursorLoader.CursorLoader(android.content.Context, android.net.Uri, java.lang.String[], java.lang.String, java.lang.String[], java.lang.String).

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