Sdílet prostřednictvím


ContentQueryMap Constructors

Definition

Overloads

ContentQueryMap(IntPtr, JniHandleOwnership)

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

ContentQueryMap(ICursor, String, Boolean, Handler)

Creates a ContentQueryMap that caches the content backing the cursor

ContentQueryMap(IntPtr, JniHandleOwnership)

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

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

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

ContentQueryMap(ICursor, String, Boolean, Handler)

Creates a ContentQueryMap that caches the content backing the cursor

[Android.Runtime.Register(".ctor", "(Landroid/database/Cursor;Ljava/lang/String;ZLandroid/os/Handler;)V", "")]
public ContentQueryMap (Android.Database.ICursor? cursor, string? columnNameOfKey, bool keepUpdated, Android.OS.Handler? handlerForUpdateNotifications);
[<Android.Runtime.Register(".ctor", "(Landroid/database/Cursor;Ljava/lang/String;ZLandroid/os/Handler;)V", "")>]
new Android.Content.ContentQueryMap : Android.Database.ICursor * string * bool * Android.OS.Handler -> Android.Content.ContentQueryMap

Parameters

cursor
ICursor

the cursor whose contents should be cached

columnNameOfKey
String

the column that is to be used as the key of the values map

keepUpdated
Boolean

true if the cursor's ContentProvider should be monitored for changes and the map updated when changes do occur

handlerForUpdateNotifications
Handler

the Handler that should be used to receive notifications of changes (if requested). Normally you pass null here, but if you know that the thread that is creating this isn't a thread that can receive messages then you can create your own handler and use that here.

Attributes

Remarks

Creates a ContentQueryMap that caches the content backing the cursor

Java documentation for android.content.ContentQueryMap.ContentQueryMap(android.database.Cursor, java.lang.String, boolean, android.os.Handler).

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