Android Guides | Samples

Android.Content.ContentQueryMap Class

Caches the contents of a cursor into a Map of String->ContentValues and optionally keeps the cache fresh by registering for updates on the content backing the cursor.

See Also: ContentQueryMap

Syntax

[Android.Runtime.Register("android/content/ContentQueryMap", DoNotGenerateAcw=true)]
public class ContentQueryMap : Observable

Remarks

Caches the contents of a cursor into a Map of String->ContentValues and optionally keeps the cache fresh by registering for updates on the content backing the cursor. The column of the database that is to be used as the key of the map is user-configurable, and the ContentValues contains all columns other than the one that is designated the key.

The cursor data is accessed by row key and column name via getValue().

[Android Documentation]

Requirements

Namespace: Android.Content
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1

The members of Android.Content.ContentQueryMap are listed below.

See Also: Observable

Public Constructors

Creates a ContentQueryMap that caches the content backing the cursor

Protected Constructors

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

Public Properties

Protected Properties

[read-only]
override
ThresholdClassIntPtr. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.
[read-only]
override
ThresholdTypeType. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

Public Methods

Close()
GetValues(String) : ContentValues
Access the ContentValues for the row specified by rowName
Requery()
Requeries the cursor and reads the contents into the cache
SetKeepUpdated(Boolean)
Change whether or not the ContentQueryMap will register with the cursor's ContentProvider for change notifications.