Android.Database.ICursor Members

The members of Android.Database.ICursor are listed below.

Public Properties

[read-only]
ColumnCountint. Return total number of columns
[read-only]
Countint. Returns the numbers of rows in the cursor.
[read-only]
ExtrasAndroid.OS.Bundle. Returns a bundle of extra values.
[read-only]
IsAfterLastbool. Returns whether the cursor is pointing to the position after the last row.
[read-only]
IsBeforeFirstbool. Returns whether the cursor is pointing to the position before the first row.
[read-only]
IsClosedbool. return true if the cursor is closed
[read-only]
IsFirstbool. Returns whether the cursor is pointing to the first row.
[read-only]
IsLastbool. Returns whether the cursor is pointing to the last row.
[read-only]
NotificationUriAndroid.Net.Uri. Return the URI at which notifications of changes in this Cursor's data will be delivered, as previously set by ICursor.SetNotificationUri(Android.Content.ContentResolver, Android.Net.Uri).
[read-only]
Positionint. Returns the current position of the cursor in the row set.
[read-only]
WantsAllOnMoveCallsbool. onMove() will only be called across processes if this method returns true.

Public Methods

Close()
Closes the Cursor, releasing all of its resources and making it completely invalid.
CopyStringToBuffer(int, CharArrayBuffer)
Retrieves the requested column text and stores it in the buffer provided.
Deactivate()
Deactivates the Cursor, making all calls on it fail until ICursor.Requery is called.
GetBlob(int) : byte[]
Returns the value of the requested column as a byte array.
GetColumnIndex(string) : int
Returns the zero-based index for the given column name, or -1 if the column doesn't exist.
GetColumnIndexOrThrow(string) : int
Returns the zero-based index for the given column name, or throws Java.Lang.IllegalArgumentException if the column doesn't exist.
GetColumnName(int) : string
Returns the column name at the given zero-based column index.
GetColumnNames() : string[]
Returns a string array holding the names of all of the columns in the result set in the order in which they were listed in the result.
GetDouble(int) : double
Returns the value of the requested column as a double.
GetFloat(int) : float
Returns the value of the requested column as a float.
GetInt(int) : int
Returns the value of the requested column as an int.
GetLong(int) : long
Returns the value of the requested column as a long.
GetShort(int) : short
Returns the value of the requested column as a short.
GetString(int) : string
Returns the value of the requested column as a String.
GetType(int) : FieldType
Returns data type of the given column's value.
IsNull(int) : bool
Returns true if the value in the indicated column is null.
Move(int) : bool
Move the cursor by a relative amount, forward or backward, from the current position.
MoveToFirst() : bool
Move the cursor to the first row.
MoveToLast() : bool
Move the cursor to the last row.
MoveToNext() : bool
Move the cursor to the next row.
MoveToPosition(int) : bool
Move the cursor to an absolute position.
MoveToPrevious() : bool
Move the cursor to the previous row.
RegisterContentObserver(ContentObserver)
Register an observer that is called when changes happen to the content backing this cursor.
RegisterDataSetObserver(DataSetObserver)
Register an observer that is called when changes happen to the contents of the this cursors data set, for example, when the data set is changed via ICursor.Requery, ICursor.Deactivate, or ICursor.Close.
Requery() : bool
Performs the query that created the cursor again, refreshing its contents.
Respond(Android.OS.Bundle) : Android.OS.Bundle
This is an out-of-band way for the the user of a cursor to communicate with the cursor.
SetNotificationUri(Android.Content.ContentResolver, Android.Net.Uri)
Register to watch a content URI for changes.
UnregisterContentObserver(ContentObserver)
Unregister an observer that has previously been registered with this cursor via ICursor.RegisterContentObserver(ContentObserver).
UnregisterDataSetObserver(DataSetObserver)
Unregister an observer that has previously been registered with this cursor via ICursor.RegisterContentObserver(ContentObserver).