ContentQueryMap Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
- 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
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.