# SQLiteCursor

Added in[API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  
Summary:[Inherited Constants](https://developer.android.com/reference/android/database/sqlite/SQLiteCursor#inhconstants)\|[Inherited Fields](https://developer.android.com/reference/android/database/sqlite/SQLiteCursor#inhfields)\|[Ctors](https://developer.android.com/reference/android/database/sqlite/SQLiteCursor#pubctors)\|[Methods](https://developer.android.com/reference/android/database/sqlite/SQLiteCursor#pubmethods)\|[Protected Methods](https://developer.android.com/reference/android/database/sqlite/SQLiteCursor#promethods)\|[Inherited Methods](https://developer.android.com/reference/android/database/sqlite/SQLiteCursor#inhmethods)  

# SQLiteCursor

*** ** * ** ***

[Kotlin](https://developer.android.com/reference/kotlin/android/database/sqlite/SQLiteCursor "View this page in Kotlin")\|Java

`
public


class
SQLiteCursor
`  
`


``


``

extends `[AbstractWindowedCursor](https://developer.android.com/reference/android/database/AbstractWindowedCursor)`


``


`

|---|---|---|--------------------------------------|
| [java.lang.Object](https://developer.android.com/reference/java/lang/Object) ||||
| ↳ | [android.database.AbstractCursor](https://developer.android.com/reference/android/database/AbstractCursor) |||
|   | ↳ | [android.database.AbstractWindowedCursor](https://developer.android.com/reference/android/database/AbstractWindowedCursor) ||
|   |   | ↳ | android.database.sqlite.SQLiteCursor |

<br />

*** ** * ** ***

A Cursor implementation that exposes results from a query on a[SQLiteDatabase](https://developer.android.com/reference/android/database/sqlite/SQLiteDatabase). SQLiteCursor is not internally synchronized so code using a SQLiteCursor from multiple threads should perform its own synchronization when using the SQLiteCursor.

## Summary

|                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       ### Inherited constants                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| From interface[android.database.Cursor](https://developer.android.com/reference/android/database/Cursor) |-------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | `int` | [FIELD_TYPE_BLOB](https://developer.android.com/reference/android/database/Cursor#FIELD_TYPE_BLOB) Value returned by[getType(int)](https://developer.android.com/reference/android/database/Cursor#getType(int))if the specified column type is blob          | | `int` | [FIELD_TYPE_FLOAT](https://developer.android.com/reference/android/database/Cursor#FIELD_TYPE_FLOAT) Value returned by[getType(int)](https://developer.android.com/reference/android/database/Cursor#getType(int))if the specified column type is float       | | `int` | [FIELD_TYPE_INTEGER](https://developer.android.com/reference/android/database/Cursor#FIELD_TYPE_INTEGER) Value returned by[getType(int)](https://developer.android.com/reference/android/database/Cursor#getType(int))if the specified column type is integer | | `int` | [FIELD_TYPE_NULL](https://developer.android.com/reference/android/database/Cursor#FIELD_TYPE_NULL) Value returned by[getType(int)](https://developer.android.com/reference/android/database/Cursor#getType(int))if the specified column is null               | | `int` | [FIELD_TYPE_STRING](https://developer.android.com/reference/android/database/Cursor#FIELD_TYPE_STRING) Value returned by[getType(int)](https://developer.android.com/reference/android/database/Cursor#getType(int))if the specified column type is string    | |

|                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     ### Inherited fields                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| From class[android.database.AbstractWindowedCursor](https://developer.android.com/reference/android/database/AbstractWindowedCursor) |----------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------| | ` protected `[CursorWindow](https://developer.android.com/reference/android/database/CursorWindow) | [mWindow](https://developer.android.com/reference/android/database/AbstractWindowedCursor#mWindow) The cursor window owned by this cursor. |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| From class[android.database.AbstractCursor](https://developer.android.com/reference/android/database/AbstractCursor) |---------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | ` protected boolean`                                                                                    | [mClosed](https://developer.android.com/reference/android/database/AbstractCursor#mClosed) *This field was deprecated in API level 23. Use[isClosed()](https://developer.android.com/reference/android/database/AbstractCursor#isClosed())instead.* | | ` protected `[ContentResolver](https://developer.android.com/reference/android/content/ContentResolver) | [mContentResolver](https://developer.android.com/reference/android/database/AbstractCursor#mContentResolver) *This field was deprecated in API level 23. Do not use.*                                                                               | | ` protected int`                                                                                        | [mPos](https://developer.android.com/reference/android/database/AbstractCursor#mPos) *This field was deprecated in API level 23. Use[getPosition()](https://developer.android.com/reference/android/database/AbstractCursor#getPosition())instead.* | |

|                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              ### Public constructors                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              ||
|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|
| ` `[SQLiteCursor](https://developer.android.com/reference/android/database/sqlite/SQLiteCursor#SQLiteCursor(android.database.sqlite.SQLiteCursorDriver,%20java.lang.String,%20android.database.sqlite.SQLiteQuery))`(`[SQLiteCursorDriver](https://developer.android.com/reference/android/database/sqlite/SQLiteCursorDriver)` driver, `[String](https://developer.android.com/reference/java/lang/String)` editTable, `[SQLiteQuery](https://developer.android.com/reference/android/database/sqlite/SQLiteQuery)` query) ` Execute a query and provide access to its result set through a Cursor interface.                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| ` `[SQLiteCursor](https://developer.android.com/reference/android/database/sqlite/SQLiteCursor#SQLiteCursor(android.database.sqlite.SQLiteDatabase,%20android.database.sqlite.SQLiteCursorDriver,%20java.lang.String,%20android.database.sqlite.SQLiteQuery))`(`[SQLiteDatabase](https://developer.android.com/reference/android/database/sqlite/SQLiteDatabase)` db, `[SQLiteCursorDriver](https://developer.android.com/reference/android/database/sqlite/SQLiteCursorDriver)` driver, `[String](https://developer.android.com/reference/java/lang/String)` editTable, `[SQLiteQuery](https://developer.android.com/reference/android/database/sqlite/SQLiteQuery)` query) ` *This constructor is deprecated. use[SQLiteCursor(android.database.sqlite.SQLiteCursorDriver, java.lang.String, android.database.sqlite.SQLiteQuery)](https://developer.android.com/reference/android/database/sqlite/SQLiteCursor#SQLiteCursor(android.database.sqlite.SQLiteCursorDriver,%20java.lang.String,%20android.database.sqlite.SQLiteQuery))instead* |

|                                                                                                                                                                                                   ### Public methods                                                                                                                                                                                                   ||
|-----------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| ` void`                                                                                             | ` `[close](https://developer.android.com/reference/android/database/sqlite/SQLiteCursor#close())`() ` Closes the Cursor, releasing all of its resources and making it completely invalid.                                                                                                                         |
| ` void`                                                                                             | ` `[deactivate](https://developer.android.com/reference/android/database/sqlite/SQLiteCursor#deactivate())`() ` Deactivates the Cursor, making all calls on it fail until[requery()](https://developer.android.com/reference/android/database/Cursor#requery())is called.                                         |
| ` int`                                                                                              | ` `[getColumnIndex](https://developer.android.com/reference/android/database/sqlite/SQLiteCursor#getColumnIndex(java.lang.String))`(`[String](https://developer.android.com/reference/java/lang/String)` columnName) ` Returns the zero-based index for the given column name, or -1 if the column doesn't exist. |
| ` `[String[]](https://developer.android.com/reference/java/lang/String)                             | ` `[getColumnNames](https://developer.android.com/reference/android/database/sqlite/SQLiteCursor#getColumnNames())`() ` 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.                                                    |
| ` int`                                                                                              | ` `[getCount](https://developer.android.com/reference/android/database/sqlite/SQLiteCursor#getCount())`() ` Returns the numbers of rows in the cursor.                                                                                                                                                            |
| ` `[SQLiteDatabase](https://developer.android.com/reference/android/database/sqlite/SQLiteDatabase) | ` `[getDatabase](https://developer.android.com/reference/android/database/sqlite/SQLiteCursor#getDatabase())`() ` Get the database that this cursor is associated with.                                                                                                                                           |
| ` boolean`                                                                                          | ` `[onMove](https://developer.android.com/reference/android/database/sqlite/SQLiteCursor#onMove(int,%20int))`(int oldPosition, int newPosition) ` This function is called every time the cursor is successfully scrolled to a new position, giving the subclass a chance to update any state it may have.         |
| ` boolean`                                                                                          | ` `[requery](https://developer.android.com/reference/android/database/sqlite/SQLiteCursor#requery())`() ` Performs the query that created the cursor again, refreshing its contents.                                                                                                                              |
| ` void`                                                                                             | ` `[setFillWindowForwardOnly](https://developer.android.com/reference/android/database/sqlite/SQLiteCursor#setFillWindowForwardOnly(boolean))`(boolean fillWindowForwardOnly) ` Controls fetching of rows relative to requested position.                                                                         |
| ` void`                                                                                             | ` `[setSelectionArguments](https://developer.android.com/reference/android/database/sqlite/SQLiteCursor#setSelectionArguments(java.lang.String[]))`(`[String[]](https://developer.android.com/reference/java/lang/String)` selectionArgs) ` Changes the selection arguments.                                      |
| ` void`                                                                                             | ` `[setWindow](https://developer.android.com/reference/android/database/sqlite/SQLiteCursor#setWindow(android.database.CursorWindow))`(`[CursorWindow](https://developer.android.com/reference/android/database/CursorWindow)` window) ` Sets a new cursor window for the cursor to use.                          |

|                                                                                 ### Protected methods                                                                                 ||
|---------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| ` void` | ` `[finalize](https://developer.android.com/reference/android/database/sqlite/SQLiteCursor#finalize())`() ` Release the native resources, if they haven't been released yet. |

| ### Inherited methods |
|-----------------------|---|
| From class` `[android.database.AbstractWindowedCursor](https://developer.android.com/reference/android/database/AbstractWindowedCursor)` ` |------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | ` void`                                                                                  | ` `[checkPosition](https://developer.android.com/reference/android/database/AbstractWindowedCursor#checkPosition())`() ` This function throws CursorIndexOutOfBoundsException if the cursor position is out of bounds.                                                                                                                                                   | | ` void`                                                                                  | ` `[copyStringToBuffer](https://developer.android.com/reference/android/database/AbstractWindowedCursor#copyStringToBuffer(int,%20android.database.CharArrayBuffer))`(int columnIndex, `[CharArrayBuffer](https://developer.android.com/reference/android/database/CharArrayBuffer)` buffer) ` Retrieves the requested column text and stores it in the buffer provided. | | ` byte[]`                                                                                | ` `[getBlob](https://developer.android.com/reference/android/database/AbstractWindowedCursor#getBlob(int))`(int columnIndex) ` Returns the value of the requested column as a byte array.                                                                                                                                                                                | | ` double`                                                                                | ` `[getDouble](https://developer.android.com/reference/android/database/AbstractWindowedCursor#getDouble(int))`(int columnIndex) ` Returns the value of the requested column as a double.                                                                                                                                                                                | | ` float`                                                                                 | ` `[getFloat](https://developer.android.com/reference/android/database/AbstractWindowedCursor#getFloat(int))`(int columnIndex) ` Returns the value of the requested column as a float.                                                                                                                                                                                   | | ` int`                                                                                   | ` `[getInt](https://developer.android.com/reference/android/database/AbstractWindowedCursor#getInt(int))`(int columnIndex) ` Returns the value of the requested column as an int.                                                                                                                                                                                        | | ` long`                                                                                  | ` `[getLong](https://developer.android.com/reference/android/database/AbstractWindowedCursor#getLong(int))`(int columnIndex) ` Returns the value of the requested column as a long.                                                                                                                                                                                      | | ` short`                                                                                 | ` `[getShort](https://developer.android.com/reference/android/database/AbstractWindowedCursor#getShort(int))`(int columnIndex) ` Returns the value of the requested column as a short.                                                                                                                                                                                   | | ` `[String](https://developer.android.com/reference/java/lang/String)                    | ` `[getString](https://developer.android.com/reference/android/database/AbstractWindowedCursor#getString(int))`(int columnIndex) ` Returns the value of the requested column as a String.                                                                                                                                                                                | | ` int`                                                                                   | ` `[getType](https://developer.android.com/reference/android/database/AbstractWindowedCursor#getType(int))`(int columnIndex) ` Returns data type of the given column's value.                                                                                                                                                                                            | | ` `[CursorWindow](https://developer.android.com/reference/android/database/CursorWindow) | ` `[getWindow](https://developer.android.com/reference/android/database/AbstractWindowedCursor#getWindow())`() ` If the cursor is backed by a[CursorWindow](https://developer.android.com/reference/android/database/CursorWindow), returns a pre-filled window with the contents of the cursor, otherwise null.                                                         | | ` boolean`                                                                               | ` `[hasWindow](https://developer.android.com/reference/android/database/AbstractWindowedCursor#hasWindow())`() ` Returns true if the cursor has an associated cursor window.                                                                                                                                                                                             | | ` boolean`                                                                               | ` `[isBlob](https://developer.android.com/reference/android/database/AbstractWindowedCursor#isBlob(int))`(int columnIndex) ` *This method was deprecated in API level 15. Use[getType(int)](https://developer.android.com/reference/android/database/AbstractWindowedCursor#getType(int))*                                                                               | | ` boolean`                                                                               | ` `[isFloat](https://developer.android.com/reference/android/database/AbstractWindowedCursor#isFloat(int))`(int columnIndex) ` *This method was deprecated in API level 15. Use[getType(int)](https://developer.android.com/reference/android/database/AbstractWindowedCursor#getType(int))*                                                                             | | ` boolean`                                                                               | ` `[isLong](https://developer.android.com/reference/android/database/AbstractWindowedCursor#isLong(int))`(int columnIndex) ` *This method was deprecated in API level 15. Use[getType(int)](https://developer.android.com/reference/android/database/AbstractWindowedCursor#getType(int))*                                                                               | | ` boolean`                                                                               | ` `[isNull](https://developer.android.com/reference/android/database/AbstractWindowedCursor#isNull(int))`(int columnIndex) ` Returns`true`if the value in the indicated column is null.                                                                                                                                                                                  | | ` boolean`                                                                               | ` `[isString](https://developer.android.com/reference/android/database/AbstractWindowedCursor#isString(int))`(int columnIndex) ` *This method was deprecated in API level 15. Use[getType(int)](https://developer.android.com/reference/android/database/AbstractWindowedCursor#getType(int))*                                                                           | | ` void`                                                                                  | ` `[setWindow](https://developer.android.com/reference/android/database/AbstractWindowedCursor#setWindow(android.database.CursorWindow))`(`[CursorWindow](https://developer.android.com/reference/android/database/CursorWindow)` window) ` Sets a new cursor window for the cursor to use.                                                                              | ||
| From class` `[android.database.AbstractCursor](https://developer.android.com/reference/android/database/AbstractCursor)` ` |---------------------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | ` void`                                                                                                                               | ` `[checkPosition](https://developer.android.com/reference/android/database/AbstractCursor#checkPosition())`() ` This function throws CursorIndexOutOfBoundsException if the cursor position is out of bounds.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                | | ` void`                                                                                                                               | ` `[close](https://developer.android.com/reference/android/database/AbstractCursor#close())`() ` Closes the Cursor, releasing all of its resources and making it completely invalid.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          | | ` void`                                                                                                                               | ` `[copyStringToBuffer](https://developer.android.com/reference/android/database/AbstractCursor#copyStringToBuffer(int,%20android.database.CharArrayBuffer))`(int columnIndex, `[CharArrayBuffer](https://developer.android.com/reference/android/database/CharArrayBuffer)` buffer) ` Retrieves the requested column text and stores it in the buffer provided.                                                                                                                                                                                                                                                                                                                                                                              | | ` void`                                                                                                                               | ` `[deactivate](https://developer.android.com/reference/android/database/AbstractCursor#deactivate())`() ` Deactivates the Cursor, making all calls on it fail until[requery()](https://developer.android.com/reference/android/database/Cursor#requery())is called.                                                                                                                                                                                                                                                                                                                                                                                                                                                                          | | ` void`                                                                                                                               | ` `[fillWindow](https://developer.android.com/reference/android/database/AbstractCursor#fillWindow(int,%20android.database.CursorWindow))`(int position, `[CursorWindow](https://developer.android.com/reference/android/database/CursorWindow)` window) ` Copies cursor data into the window.                                                                                                                                                                                                                                                                                                                                                                                                                                                | | ` void`                                                                                                                               | ` `[finalize](https://developer.android.com/reference/android/database/AbstractCursor#finalize())`() ` Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       | | ` byte[]`                                                                                                                             | ` `[getBlob](https://developer.android.com/reference/android/database/AbstractCursor#getBlob(int))`(int column) ` Returns the value of the requested column as a byte array.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  | | ` int`                                                                                                                                | ` `[getColumnCount](https://developer.android.com/reference/android/database/AbstractCursor#getColumnCount())`() ` Return total number of columns                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             | | ` int`                                                                                                                                | ` `[getColumnIndex](https://developer.android.com/reference/android/database/AbstractCursor#getColumnIndex(java.lang.String))`(`[String](https://developer.android.com/reference/java/lang/String)` columnName) ` Returns the zero-based index for the given column name, or -1 if the column doesn't exist.                                                                                                                                                                                                                                                                                                                                                                                                                                  | | ` int`                                                                                                                                | ` `[getColumnIndexOrThrow](https://developer.android.com/reference/android/database/AbstractCursor#getColumnIndexOrThrow(java.lang.String))`(`[String](https://developer.android.com/reference/java/lang/String)` columnName) ` Returns the zero-based index for the given column name, or throws[IllegalArgumentException](https://developer.android.com/reference/java/lang/IllegalArgumentException)if the column doesn't exist.                                                                                                                                                                                                                                                                                                           | | ` `[String](https://developer.android.com/reference/java/lang/String)                                                                 | ` `[getColumnName](https://developer.android.com/reference/android/database/AbstractCursor#getColumnName(int))`(int columnIndex) ` Returns the column name at the given zero-based column index.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              | | ` abstract `[String[]](https://developer.android.com/reference/java/lang/String)                                                      | ` `[getColumnNames](https://developer.android.com/reference/android/database/AbstractCursor#getColumnNames())`() ` 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.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     | | ` abstract int`                                                                                                                       | ` `[getCount](https://developer.android.com/reference/android/database/AbstractCursor#getCount())`() ` Returns the numbers of rows in the cursor.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             | | ` abstract double`                                                                                                                    | ` `[getDouble](https://developer.android.com/reference/android/database/AbstractCursor#getDouble(int))`(int column) ` Returns the value of the requested column as a double.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  | | ` `[Bundle](https://developer.android.com/reference/android/os/Bundle)                                                                | ` `[getExtras](https://developer.android.com/reference/android/database/AbstractCursor#getExtras())`() ` Returns a bundle of extra values.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    | | ` abstract float`                                                                                                                     | ` `[getFloat](https://developer.android.com/reference/android/database/AbstractCursor#getFloat(int))`(int column) ` Returns the value of the requested column as a float.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     | | ` abstract int`                                                                                                                       | ` `[getInt](https://developer.android.com/reference/android/database/AbstractCursor#getInt(int))`(int column) ` Returns the value of the requested column as an int.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          | | ` abstract long`                                                                                                                      | ` `[getLong](https://developer.android.com/reference/android/database/AbstractCursor#getLong(int))`(int column) ` Returns the value of the requested column as a long.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        | | ` `[Uri](https://developer.android.com/reference/android/net/Uri)                                                                     | ` `[getNotificationUri](https://developer.android.com/reference/android/database/AbstractCursor#getNotificationUri())`() ` Return the URI at which notifications of changes in this Cursor's data will be delivered, as previously set by[setNotificationUri(ContentResolver, Uri)](https://developer.android.com/reference/android/database/Cursor#setNotificationUri(android.content.ContentResolver,%20android.net.Uri)).                                                                                                                                                                                                                                                                                                                  | | ` `[List](https://developer.android.com/reference/java/util/List)`<`[Uri](https://developer.android.com/reference/android/net/Uri)`>` | ` `[getNotificationUris](https://developer.android.com/reference/android/database/AbstractCursor#getNotificationUris())`() ` Return the URIs at which notifications of changes in this Cursor's data will be delivered, as previously set by[setNotificationUris(ContentResolver, List)](https://developer.android.com/reference/android/database/Cursor#setNotificationUris(android.content.ContentResolver,%20java.util.List<android.net.Uri>)).                                                                                                                                                                                                                                                                                            | | ` final int`                                                                                                                          | ` `[getPosition](https://developer.android.com/reference/android/database/AbstractCursor#getPosition())`() ` Returns the current position of the cursor in the row set.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       | | ` abstract short`                                                                                                                     | ` `[getShort](https://developer.android.com/reference/android/database/AbstractCursor#getShort(int))`(int column) ` Returns the value of the requested column as a short.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     | | ` abstract `[String](https://developer.android.com/reference/java/lang/String)                                                        | ` `[getString](https://developer.android.com/reference/android/database/AbstractCursor#getString(int))`(int column) ` Returns the value of the requested column as a String.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  | | ` int`                                                                                                                                | ` `[getType](https://developer.android.com/reference/android/database/AbstractCursor#getType(int))`(int column) ` Returns data type of the given column's value.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              | | ` `[Object](https://developer.android.com/reference/java/lang/Object)                                                                 | ` `[getUpdatedField](https://developer.android.com/reference/android/database/AbstractCursor#getUpdatedField(int))`(int columnIndex) ` *This method was deprecated in API level 15. Always returns null since Cursors do not support updating rows*                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           | | ` boolean`                                                                                                                            | ` `[getWantsAllOnMoveCalls](https://developer.android.com/reference/android/database/AbstractCursor#getWantsAllOnMoveCalls())`() ` onMove() will only be called across processes if this method returns true.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 | | ` `[CursorWindow](https://developer.android.com/reference/android/database/CursorWindow)                                              | ` `[getWindow](https://developer.android.com/reference/android/database/AbstractCursor#getWindow())`() ` If the cursor is backed by a[CursorWindow](https://developer.android.com/reference/android/database/CursorWindow), returns a pre-filled window with the contents of the cursor, otherwise null.                                                                                                                                                                                                                                                                                                                                                                                                                                      | | ` final boolean`                                                                                                                      | ` `[isAfterLast](https://developer.android.com/reference/android/database/AbstractCursor#isAfterLast())`() ` Returns whether the cursor is pointing to the position after the last row.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       | | ` final boolean`                                                                                                                      | ` `[isBeforeFirst](https://developer.android.com/reference/android/database/AbstractCursor#isBeforeFirst())`() ` Returns whether the cursor is pointing to the position before the first row.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 | | ` boolean`                                                                                                                            | ` `[isClosed](https://developer.android.com/reference/android/database/AbstractCursor#isClosed())`() ` return true if the cursor is closed                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    | | ` boolean`                                                                                                                            | ` `[isFieldUpdated](https://developer.android.com/reference/android/database/AbstractCursor#isFieldUpdated(int))`(int columnIndex) ` *This method was deprecated in API level 15. Always returns false since Cursors do not support updating rows*                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            | | ` final boolean`                                                                                                                      | ` `[isFirst](https://developer.android.com/reference/android/database/AbstractCursor#isFirst())`() ` Returns whether the cursor is pointing to the first row.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 | | ` final boolean`                                                                                                                      | ` `[isLast](https://developer.android.com/reference/android/database/AbstractCursor#isLast())`() ` Returns whether the cursor is pointing to the last row.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    | | ` abstract boolean`                                                                                                                   | ` `[isNull](https://developer.android.com/reference/android/database/AbstractCursor#isNull(int))`(int column) ` Returns`true`if the value in the indicated column is null.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    | | ` final boolean`                                                                                                                      | ` `[move](https://developer.android.com/reference/android/database/AbstractCursor#move(int))`(int offset) ` Move the cursor by a relative amount, forward or backward, from the current position.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             | | ` final boolean`                                                                                                                      | ` `[moveToFirst](https://developer.android.com/reference/android/database/AbstractCursor#moveToFirst())`() ` Move the cursor to the first row.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                | | ` final boolean`                                                                                                                      | ` `[moveToLast](https://developer.android.com/reference/android/database/AbstractCursor#moveToLast())`() ` Move the cursor to the last row.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   | | ` final boolean`                                                                                                                      | ` `[moveToNext](https://developer.android.com/reference/android/database/AbstractCursor#moveToNext())`() ` Move the cursor to the next row.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   | | ` final boolean`                                                                                                                      | ` `[moveToPosition](https://developer.android.com/reference/android/database/AbstractCursor#moveToPosition(int))`(int position) ` Move the cursor to an absolute position.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    | | ` final boolean`                                                                                                                      | ` `[moveToPrevious](https://developer.android.com/reference/android/database/AbstractCursor#moveToPrevious())`() ` Move the cursor to the previous row.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       | | ` void`                                                                                                                               | ` `[onChange](https://developer.android.com/reference/android/database/AbstractCursor#onChange(boolean))`(boolean selfChange) ` Subclasses must call this method when they finish committing updates to notify all observers.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 | | ` boolean`                                                                                                                            | ` `[onMove](https://developer.android.com/reference/android/database/AbstractCursor#onMove(int,%20int))`(int oldPosition, int newPosition) ` This function is called every time the cursor is successfully scrolled to a new position, giving the subclass a chance to update any state it may have.                                                                                                                                                                                                                                                                                                                                                                                                                                          | | ` void`                                                                                                                               | ` `[registerContentObserver](https://developer.android.com/reference/android/database/AbstractCursor#registerContentObserver(android.database.ContentObserver))`(`[ContentObserver](https://developer.android.com/reference/android/database/ContentObserver)` observer) ` Register an observer that is called when changes happen to the content backing this cursor.                                                                                                                                                                                                                                                                                                                                                                        | | ` void`                                                                                                                               | ` `[registerDataSetObserver](https://developer.android.com/reference/android/database/AbstractCursor#registerDataSetObserver(android.database.DataSetObserver))`(`[DataSetObserver](https://developer.android.com/reference/android/database/DataSetObserver)` observer) ` 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[requery()](https://developer.android.com/reference/android/database/Cursor#requery()),[deactivate()](https://developer.android.com/reference/android/database/Cursor#deactivate()), or[close()](https://developer.android.com/reference/android/database/Cursor#close()).                                      | | ` boolean`                                                                                                                            | ` `[requery](https://developer.android.com/reference/android/database/AbstractCursor#requery())`() ` Performs the query that created the cursor again, refreshing its contents.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               | | ` `[Bundle](https://developer.android.com/reference/android/os/Bundle)                                                                | ` `[respond](https://developer.android.com/reference/android/database/AbstractCursor#respond(android.os.Bundle))`(`[Bundle](https://developer.android.com/reference/android/os/Bundle)` extras) ` This is an out-of-band way for the user of a cursor to communicate with the cursor.                                                                                                                                                                                                                                                                                                                                                                                                                                                         | | ` void`                                                                                                                               | ` `[setExtras](https://developer.android.com/reference/android/database/AbstractCursor#setExtras(android.os.Bundle))`(`[Bundle](https://developer.android.com/reference/android/os/Bundle)` extras) ` Sets a[Bundle](https://developer.android.com/reference/android/os/Bundle)that will be returned by[getExtras()](https://developer.android.com/reference/android/database/Cursor#getExtras()).                                                                                                                                                                                                                                                                                                                                            | | ` void`                                                                                                                               | ` `[setNotificationUri](https://developer.android.com/reference/android/database/AbstractCursor#setNotificationUri(android.content.ContentResolver,%20android.net.Uri))`(`[ContentResolver](https://developer.android.com/reference/android/content/ContentResolver)` cr, `[Uri](https://developer.android.com/reference/android/net/Uri)` notifyUri) ` Specifies a content URI to watch for changes.                                                                                                                                                                                                                                                                                                                                         | | ` void`                                                                                                                               | ` `[setNotificationUris](https://developer.android.com/reference/android/database/AbstractCursor#setNotificationUris(android.content.ContentResolver,%20java.util.List<android.net.Uri>))`(`[ContentResolver](https://developer.android.com/reference/android/content/ContentResolver)` cr, `[List](https://developer.android.com/reference/java/util/List)`<`[Uri](https://developer.android.com/reference/android/net/Uri)`> notifyUris) ` Similar to[setNotificationUri(android.content.ContentResolver, android.net.Uri)](https://developer.android.com/reference/android/database/Cursor#setNotificationUri(android.content.ContentResolver,%20android.net.Uri)), except this version allows to watch multiple content URIs for changes. | | ` void`                                                                                                                               | ` `[unregisterContentObserver](https://developer.android.com/reference/android/database/AbstractCursor#unregisterContentObserver(android.database.ContentObserver))`(`[ContentObserver](https://developer.android.com/reference/android/database/ContentObserver)` observer) ` Unregister an observer that has previously been registered with this cursor via[registerContentObserver(ContentObserver)](https://developer.android.com/reference/android/database/Cursor#registerContentObserver(android.database.ContentObserver)).                                                                                                                                                                                                          | | ` void`                                                                                                                               | ` `[unregisterDataSetObserver](https://developer.android.com/reference/android/database/AbstractCursor#unregisterDataSetObserver(android.database.DataSetObserver))`(`[DataSetObserver](https://developer.android.com/reference/android/database/DataSetObserver)` observer) ` Unregister an observer that has previously been registered with this cursor via[registerContentObserver(ContentObserver)](https://developer.android.com/reference/android/database/Cursor#registerContentObserver(android.database.ContentObserver)).                                                                                                                                                                                                          | ||
| From class` `[java.lang.Object](https://developer.android.com/reference/java/lang/Object)` ` |--------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | ` `[Object](https://developer.android.com/reference/java/lang/Object)          | ` `[clone](https://developer.android.com/reference/java/lang/Object#clone())`() ` Creates and returns a copy of this object.                                                                                                                                                      | | ` boolean`                                                                     | ` `[equals](https://developer.android.com/reference/java/lang/Object#equals(java.lang.Object))`(`[Object](https://developer.android.com/reference/java/lang/Object)` obj) ` Indicates whether some other object is "equal to" this one.                                           | | ` void`                                                                        | ` `[finalize](https://developer.android.com/reference/java/lang/Object#finalize())`() ` Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.                                                          | | ` final `[Class](https://developer.android.com/reference/java/lang/Class)`<?>` | ` `[getClass](https://developer.android.com/reference/java/lang/Object#getClass())`() ` Returns the runtime class of this`Object`.                                                                                                                                                | | ` int`                                                                         | ` `[hashCode](https://developer.android.com/reference/java/lang/Object#hashCode())`() ` Returns a hash code value for the object.                                                                                                                                                 | | ` final void`                                                                  | ` `[notify](https://developer.android.com/reference/java/lang/Object#notify())`() ` Wakes up a single thread that is waiting on this object's monitor.                                                                                                                            | | ` final void`                                                                  | ` `[notifyAll](https://developer.android.com/reference/java/lang/Object#notifyAll())`() ` Wakes up all threads that are waiting on this object's monitor.                                                                                                                         | | ` `[String](https://developer.android.com/reference/java/lang/String)          | ` `[toString](https://developer.android.com/reference/java/lang/Object#toString())`() ` Returns a string representation of the object.                                                                                                                                            | | ` final void`                                                                  | ` `[wait](https://developer.android.com/reference/java/lang/Object#wait(long,%20int))`(long timeoutMillis, int nanos) ` Causes the current thread to wait until it is awakened, typically by being*notified* or*interrupted*, or until a certain amount of real time has elapsed. | | ` final void`                                                                  | ` `[wait](https://developer.android.com/reference/java/lang/Object#wait(long))`(long timeoutMillis) ` Causes the current thread to wait until it is awakened, typically by being*notified* or*interrupted*, or until a certain amount of real time has elapsed.                   | | ` final void`                                                                  | ` `[wait](https://developer.android.com/reference/java/lang/Object#wait())`() ` Causes the current thread to wait until it is awakened, typically by being*notified* or*interrupted*.                                                                                             | ||
| From interface` `[android.database.CrossProcessCursor](https://developer.android.com/reference/android/database/CrossProcessCursor)` ` |---------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | ` abstract void`                                                                                  | ` `[fillWindow](https://developer.android.com/reference/android/database/CrossProcessCursor#fillWindow(int,%20android.database.CursorWindow))`(int position, `[CursorWindow](https://developer.android.com/reference/android/database/CursorWindow)` window) ` Copies cursor data into the window.       | | ` abstract `[CursorWindow](https://developer.android.com/reference/android/database/CursorWindow) | ` `[getWindow](https://developer.android.com/reference/android/database/CrossProcessCursor#getWindow())`() ` Returns a pre-filled window that contains the data within this cursor.                                                                                                                      | | ` abstract boolean`                                                                               | ` `[onMove](https://developer.android.com/reference/android/database/CrossProcessCursor#onMove(int,%20int))`(int oldPosition, int newPosition) ` This function is called every time the cursor is successfully scrolled to a new position, giving the subclass a chance to update any state it may have. | ||
| From interface` `[android.database.Cursor](https://developer.android.com/reference/android/database/Cursor)` ` |-----------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | ` abstract void`                                                                                                                              | ` `[close](https://developer.android.com/reference/android/database/Cursor#close())`() ` Closes the Cursor, releasing all of its resources and making it completely invalid.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    | | ` abstract void`                                                                                                                              | ` `[copyStringToBuffer](https://developer.android.com/reference/android/database/Cursor#copyStringToBuffer(int,%20android.database.CharArrayBuffer))`(int columnIndex, `[CharArrayBuffer](https://developer.android.com/reference/android/database/CharArrayBuffer)` buffer) ` Retrieves the requested column text and stores it in the buffer provided.                                                                                                                                                                                                                                                                                                                                                                        | | ` abstract void`                                                                                                                              | ` `[deactivate](https://developer.android.com/reference/android/database/Cursor#deactivate())`() ` *This method was deprecated in API level 16. Since[requery()](https://developer.android.com/reference/android/database/Cursor#requery())is deprecated, so too is this.*                                                                                                                                                                                                                                                                                                                                                                                                                                                      | | ` abstract byte[]`                                                                                                                            | ` `[getBlob](https://developer.android.com/reference/android/database/Cursor#getBlob(int))`(int columnIndex) ` Returns the value of the requested column as a byte array.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       | | ` abstract int`                                                                                                                               | ` `[getColumnCount](https://developer.android.com/reference/android/database/Cursor#getColumnCount())`() ` Return total number of columns                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       | | ` abstract int`                                                                                                                               | ` `[getColumnIndex](https://developer.android.com/reference/android/database/Cursor#getColumnIndex(java.lang.String))`(`[String](https://developer.android.com/reference/java/lang/String)` columnName) ` Returns the zero-based index for the given column name, or -1 if the column doesn't exist.                                                                                                                                                                                                                                                                                                                                                                                                                            | | ` abstract int`                                                                                                                               | ` `[getColumnIndexOrThrow](https://developer.android.com/reference/android/database/Cursor#getColumnIndexOrThrow(java.lang.String))`(`[String](https://developer.android.com/reference/java/lang/String)` columnName) ` Returns the zero-based index for the given column name, or throws[IllegalArgumentException](https://developer.android.com/reference/java/lang/IllegalArgumentException)if the column doesn't exist.                                                                                                                                                                                                                                                                                                     | | ` abstract `[String](https://developer.android.com/reference/java/lang/String)                                                                | ` `[getColumnName](https://developer.android.com/reference/android/database/Cursor#getColumnName(int))`(int columnIndex) ` Returns the column name at the given zero-based column index.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        | | ` abstract `[String[]](https://developer.android.com/reference/java/lang/String)                                                              | ` `[getColumnNames](https://developer.android.com/reference/android/database/Cursor#getColumnNames())`() ` 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.                                                                                                                                                                                                                                                                                                                                                                                                                                                                               | | ` abstract int`                                                                                                                               | ` `[getCount](https://developer.android.com/reference/android/database/Cursor#getCount())`() ` Returns the numbers of rows in the cursor.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       | | ` abstract double`                                                                                                                            | ` `[getDouble](https://developer.android.com/reference/android/database/Cursor#getDouble(int))`(int columnIndex) ` Returns the value of the requested column as a double.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       | | ` abstract `[Bundle](https://developer.android.com/reference/android/os/Bundle)                                                               | ` `[getExtras](https://developer.android.com/reference/android/database/Cursor#getExtras())`() ` Returns a bundle of extra values.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              | | ` abstract float`                                                                                                                             | ` `[getFloat](https://developer.android.com/reference/android/database/Cursor#getFloat(int))`(int columnIndex) ` Returns the value of the requested column as a float.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          | | ` abstract int`                                                                                                                               | ` `[getInt](https://developer.android.com/reference/android/database/Cursor#getInt(int))`(int columnIndex) ` Returns the value of the requested column as an int.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               | | ` abstract long`                                                                                                                              | ` `[getLong](https://developer.android.com/reference/android/database/Cursor#getLong(int))`(int columnIndex) ` Returns the value of the requested column as a long.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             | | ` abstract `[Uri](https://developer.android.com/reference/android/net/Uri)                                                                    | ` `[getNotificationUri](https://developer.android.com/reference/android/database/Cursor#getNotificationUri())`() ` Return the URI at which notifications of changes in this Cursor's data will be delivered, as previously set by[setNotificationUri(ContentResolver, Uri)](https://developer.android.com/reference/android/database/Cursor#setNotificationUri(android.content.ContentResolver,%20android.net.Uri)).                                                                                                                                                                                                                                                                                                            | | ` default `[List](https://developer.android.com/reference/java/util/List)`<`[Uri](https://developer.android.com/reference/android/net/Uri)`>` | ` `[getNotificationUris](https://developer.android.com/reference/android/database/Cursor#getNotificationUris())`() ` Return the URIs at which notifications of changes in this Cursor's data will be delivered, as previously set by[setNotificationUris(ContentResolver, List)](https://developer.android.com/reference/android/database/Cursor#setNotificationUris(android.content.ContentResolver,%20java.util.List<android.net.Uri>)).                                                                                                                                                                                                                                                                                      | | ` abstract int`                                                                                                                               | ` `[getPosition](https://developer.android.com/reference/android/database/Cursor#getPosition())`() ` Returns the current position of the cursor in the row set.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 | | ` abstract short`                                                                                                                             | ` `[getShort](https://developer.android.com/reference/android/database/Cursor#getShort(int))`(int columnIndex) ` Returns the value of the requested column as a short.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          | | ` abstract `[String](https://developer.android.com/reference/java/lang/String)                                                                | ` `[getString](https://developer.android.com/reference/android/database/Cursor#getString(int))`(int columnIndex) ` Returns the value of the requested column as a String.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       | | ` abstract int`                                                                                                                               | ` `[getType](https://developer.android.com/reference/android/database/Cursor#getType(int))`(int columnIndex) ` Returns data type of the given column's value.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   | | ` abstract boolean`                                                                                                                           | ` `[getWantsAllOnMoveCalls](https://developer.android.com/reference/android/database/Cursor#getWantsAllOnMoveCalls())`() ` onMove() will only be called across processes if this method returns true.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           | | ` abstract boolean`                                                                                                                           | ` `[isAfterLast](https://developer.android.com/reference/android/database/Cursor#isAfterLast())`() ` Returns whether the cursor is pointing to the position after the last row.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 | | ` abstract boolean`                                                                                                                           | ` `[isBeforeFirst](https://developer.android.com/reference/android/database/Cursor#isBeforeFirst())`() ` Returns whether the cursor is pointing to the position before the first row.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           | | ` abstract boolean`                                                                                                                           | ` `[isClosed](https://developer.android.com/reference/android/database/Cursor#isClosed())`() ` return true if the cursor is closed                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              | | ` abstract boolean`                                                                                                                           | ` `[isFirst](https://developer.android.com/reference/android/database/Cursor#isFirst())`() ` Returns whether the cursor is pointing to the first row.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           | | ` abstract boolean`                                                                                                                           | ` `[isLast](https://developer.android.com/reference/android/database/Cursor#isLast())`() ` Returns whether the cursor is pointing to the last row.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              | | ` abstract boolean`                                                                                                                           | ` `[isNull](https://developer.android.com/reference/android/database/Cursor#isNull(int))`(int columnIndex) ` Returns`true`if the value in the indicated column is null.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         | | ` abstract boolean`                                                                                                                           | ` `[move](https://developer.android.com/reference/android/database/Cursor#move(int))`(int offset) ` Move the cursor by a relative amount, forward or backward, from the current position.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       | | ` abstract boolean`                                                                                                                           | ` `[moveToFirst](https://developer.android.com/reference/android/database/Cursor#moveToFirst())`() ` Move the cursor to the first row.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          | | ` abstract boolean`                                                                                                                           | ` `[moveToLast](https://developer.android.com/reference/android/database/Cursor#moveToLast())`() ` Move the cursor to the last row.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             | | ` abstract boolean`                                                                                                                           | ` `[moveToNext](https://developer.android.com/reference/android/database/Cursor#moveToNext())`() ` Move the cursor to the next row.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             | | ` abstract boolean`                                                                                                                           | ` `[moveToPosition](https://developer.android.com/reference/android/database/Cursor#moveToPosition(int))`(int position) ` Move the cursor to an absolute position.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              | | ` abstract boolean`                                                                                                                           | ` `[moveToPrevious](https://developer.android.com/reference/android/database/Cursor#moveToPrevious())`() ` Move the cursor to the previous row.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 | | ` abstract void`                                                                                                                              | ` `[registerContentObserver](https://developer.android.com/reference/android/database/Cursor#registerContentObserver(android.database.ContentObserver))`(`[ContentObserver](https://developer.android.com/reference/android/database/ContentObserver)` observer) ` Register an observer that is called when changes happen to the content backing this cursor.                                                                                                                                                                                                                                                                                                                                                                  | | ` abstract void`                                                                                                                              | ` `[registerDataSetObserver](https://developer.android.com/reference/android/database/Cursor#registerDataSetObserver(android.database.DataSetObserver))`(`[DataSetObserver](https://developer.android.com/reference/android/database/DataSetObserver)` observer) ` 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[requery()](https://developer.android.com/reference/android/database/Cursor#requery()),[deactivate()](https://developer.android.com/reference/android/database/Cursor#deactivate()), or[close()](https://developer.android.com/reference/android/database/Cursor#close()).                                | | ` abstract boolean`                                                                                                                           | ` `[requery](https://developer.android.com/reference/android/database/Cursor#requery())`() ` *This method was deprecated in API level 15. Don't use this. Just request a new cursor, so you can do this asynchronously and update your list view once the new cursor comes back.*                                                                                                                                                                                                                                                                                                                                                                                                                                               | | ` abstract `[Bundle](https://developer.android.com/reference/android/os/Bundle)                                                               | ` `[respond](https://developer.android.com/reference/android/database/Cursor#respond(android.os.Bundle))`(`[Bundle](https://developer.android.com/reference/android/os/Bundle)` extras) ` This is an out-of-band way for the user of a cursor to communicate with the cursor.                                                                                                                                                                                                                                                                                                                                                                                                                                                   | | ` abstract void`                                                                                                                              | ` `[setExtras](https://developer.android.com/reference/android/database/Cursor#setExtras(android.os.Bundle))`(`[Bundle](https://developer.android.com/reference/android/os/Bundle)` extras) ` Sets a[Bundle](https://developer.android.com/reference/android/os/Bundle)that will be returned by[getExtras()](https://developer.android.com/reference/android/database/Cursor#getExtras()).                                                                                                                                                                                                                                                                                                                                      | | ` abstract void`                                                                                                                              | ` `[setNotificationUri](https://developer.android.com/reference/android/database/Cursor#setNotificationUri(android.content.ContentResolver,%20android.net.Uri))`(`[ContentResolver](https://developer.android.com/reference/android/content/ContentResolver)` cr, `[Uri](https://developer.android.com/reference/android/net/Uri)` uri) ` Register to watch a content URI for changes.                                                                                                                                                                                                                                                                                                                                          | | ` default void`                                                                                                                               | ` `[setNotificationUris](https://developer.android.com/reference/android/database/Cursor#setNotificationUris(android.content.ContentResolver,%20java.util.List<android.net.Uri>))`(`[ContentResolver](https://developer.android.com/reference/android/content/ContentResolver)` cr, `[List](https://developer.android.com/reference/java/util/List)`<`[Uri](https://developer.android.com/reference/android/net/Uri)`> uris) ` Similar to[setNotificationUri(android.content.ContentResolver, android.net.Uri)](https://developer.android.com/reference/android/database/Cursor#setNotificationUri(android.content.ContentResolver,%20android.net.Uri)), except this version allows to watch multiple content URIs for changes. | | ` abstract void`                                                                                                                              | ` `[unregisterContentObserver](https://developer.android.com/reference/android/database/Cursor#unregisterContentObserver(android.database.ContentObserver))`(`[ContentObserver](https://developer.android.com/reference/android/database/ContentObserver)` observer) ` Unregister an observer that has previously been registered with this cursor via[registerContentObserver(ContentObserver)](https://developer.android.com/reference/android/database/Cursor#registerContentObserver(android.database.ContentObserver)).                                                                                                                                                                                                    | | ` abstract void`                                                                                                                              | ` `[unregisterDataSetObserver](https://developer.android.com/reference/android/database/Cursor#unregisterDataSetObserver(android.database.DataSetObserver))`(`[DataSetObserver](https://developer.android.com/reference/android/database/DataSetObserver)` observer) ` Unregister an observer that has previously been registered with this cursor via[registerContentObserver(ContentObserver)](https://developer.android.com/reference/android/database/Cursor#registerContentObserver(android.database.ContentObserver)).                                                                                                                                                                                                    | ||
| From interface` `[java.io.Closeable](https://developer.android.com/reference/java/io/Closeable)` ` |------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------| | ` abstract void` | ` `[close](https://developer.android.com/reference/java/io/Closeable#close())`() ` Closes this stream and releases any system resources associated with it. | ||
| From interface` `[java.lang.AutoCloseable](https://developer.android.com/reference/java/lang/AutoCloseable)` ` |------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------| | ` abstract void` | ` `[close](https://developer.android.com/reference/java/lang/AutoCloseable#close())`() ` Closes this resource, relinquishing any underlying resources. | ||

## Public constructors

### SQLiteCursor

Added in[API level 11](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public SQLiteCursor (SQLiteCursorDriver driver, 
                String editTable, 
                SQLiteQuery query)
```

Execute a query and provide access to its result set through a Cursor interface. For a query such as:`SELECT name, birth, phone FROM
myTable WHERE ... LIMIT 1,20 ORDER BY...`the column names (name, birth, phone) would be in the projection argument and everything from`FROM`onward would be in the params argument.

<br />

|                                                                                 Parameters                                                                                 ||
|-------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `driver`    | `SQLiteCursorDriver` <br />                                                                                                                                   |
| `editTable` | `String`: the name of the table used for this query <br />                                                                                                    |
| `query`     | `SQLiteQuery`: the[SQLiteQuery](https://developer.android.com/reference/android/database/sqlite/SQLiteQuery)object associated with this cursor object. <br /> |

### SQLiteCursor

Added in[API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public SQLiteCursor (SQLiteDatabase db, 
                SQLiteCursorDriver driver, 
                String editTable, 
                SQLiteQuery query)
```

<br />

**This constructor is deprecated.**   
use[SQLiteCursor(android.database.sqlite.SQLiteCursorDriver, java.lang.String, android.database.sqlite.SQLiteQuery)](https://developer.android.com/reference/android/database/sqlite/SQLiteCursor#SQLiteCursor(android.database.sqlite.SQLiteCursorDriver,%20java.lang.String,%20android.database.sqlite.SQLiteQuery))instead

Execute a query and provide access to its result set through a Cursor interface. For a query such as:`SELECT name, birth, phone FROM
myTable WHERE ... LIMIT 1,20 ORDER BY...`the column names (name, birth, phone) would be in the projection argument and everything from`FROM`onward would be in the params argument.

<br />

|                                                                    Parameters                                                                    ||
|-------------|-------------------------------------------------------------------------------------------------------------------------------------|
| `db`        | `SQLiteDatabase`: a reference to a Database object that is already constructed and opened. This param is not used any longer <br /> |
| `driver`    | `SQLiteCursorDriver` <br />                                                                                                         |
| `editTable` | `String`: the name of the table used for this query <br />                                                                          |
| `query`     | `SQLiteQuery`: the rest of the query terms cursor is finalized <br />                                                               |

## Public methods

### close

Added in[API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public void close ()
```

Closes the Cursor, releasing all of its resources and making it completely invalid. Unlike[deactivate()](https://developer.android.com/reference/android/database/Cursor#deactivate())a call to[requery()](https://developer.android.com/reference/android/database/Cursor#requery())will not make the Cursor valid again.

<br />

### deactivate

Added in[API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public void deactivate ()
```

Deactivates the Cursor, making all calls on it fail until[requery()](https://developer.android.com/reference/android/database/Cursor#requery())is called. Inactive Cursors use fewer resources than active Cursors. Calling[requery()](https://developer.android.com/reference/android/database/Cursor#requery())will make the cursor active again.

<br />

### getColumnIndex

Added in[API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public int getColumnIndex (String columnName)
```

Returns the zero-based index for the given column name, or -1 if the column doesn't exist. If you expect the column to exist use[getColumnIndexOrThrow(java.lang.String)](https://developer.android.com/reference/android/database/Cursor#getColumnIndexOrThrow(java.lang.String))instead, which will make the error more clear.

<br />

|                          Parameters                           ||
|--------------|-------------------------------------------------|
| `columnName` | `String`: the name of the target column. <br /> |

|                                                               Returns                                                                ||
|-------|-------------------------------------------------------------------------------------------------------------------------------|
| `int` | the zero-based column index for the given column name, or -1 if the column name does not exist. Value is -1 or greater <br /> |

### getColumnNames

Added in[API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public String[] getColumnNames ()
```

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.

<br />

|                                                            Returns                                                            ||
|----------------------------------------------------------------------|---------------------------------------------------------|
| [String[]](https://developer.android.com/reference/java/lang/String) | the names of the columns returned in this query. <br /> |

### getCount

Added in[API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public int getCount ()
```

Returns the numbers of rows in the cursor.

<br />

|                                Returns                                ||
|-------|----------------------------------------------------------------|
| `int` | the number of rows in the cursor. Value is 0 or greater <br /> |

### getDatabase

Added in[API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public SQLiteDatabase getDatabase ()
```

Get the database that this cursor is associated with.

<br />

|                                                                             Returns                                                                              ||
|--------------------------------------------------------------------------------------------------|----------------------------------------------------------------|
| [SQLiteDatabase](https://developer.android.com/reference/android/database/sqlite/SQLiteDatabase) | the SQLiteDatabase that this cursor is associated with. <br /> |

### onMove

Added in[API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public boolean onMove (int oldPosition, 
                int newPosition)
```

This function is called every time the cursor is successfully scrolled to a new position, giving the subclass a chance to update any state it may have. If it returns false the move function will also do so and the cursor will scroll to the beforeFirst position.

<br />

|                            Parameters                            ||
|---------------|---------------------------------------------------|
| `oldPosition` | `int`: the position that we're moving from <br /> |
| `newPosition` | `int`: the position that we're moving to <br />   |

|                              Returns                              ||
|-----------|--------------------------------------------------------|
| `boolean` | true if the move is successful, false otherwise <br /> |

### requery

Added in[API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public boolean requery ()
```

Performs the query that created the cursor again, refreshing its contents. This may be done at any time, including after a call to[deactivate()](https://developer.android.com/reference/android/database/Cursor#deactivate()). Since this method could execute a query on the database and potentially take a while, it could cause ANR if it is called on Main (UI) thread. A warning is printed if this method is being executed on Main thread.

<br />

|                                                 Returns                                                  ||
|-----------|-----------------------------------------------------------------------------------------------|
| `boolean` | true if the requery succeeded, false if not, in which case the cursor becomes invalid. <br /> |

### setFillWindowForwardOnly

Added in[API level 28](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public void setFillWindowForwardOnly (boolean fillWindowForwardOnly)
```

Controls fetching of rows relative to requested position.

Calling this method defines how rows will be loaded, but it doesn't affect rows that are already in the window. This setting is preserved if a new window is[set](https://developer.android.com/reference/android/database/sqlite/SQLiteCursor#setWindow(android.database.CursorWindow))

<br />

|                                                                           Parameters                                                                           ||
|-------------------------|---------------------------------------------------------------------------------------------------------------------------------------|
| `fillWindowForwardOnly` | `boolean`: if true, rows will be fetched starting from requested position up to the window's capacity. Default value is false. <br /> |

### setSelectionArguments

Added in[API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public void setSelectionArguments (String[] selectionArgs)
```

Changes the selection arguments. The new values take effect after a call to requery().

<br />

|            Parameters            ||
|-----------------|-----------------|
| `selectionArgs` | `String` <br /> |

### setWindow

Added in[API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public void setWindow (CursorWindow window)
```

Sets a new cursor window for the cursor to use.

The cursor takes ownership of the provided cursor window; the cursor window will be closed when the cursor is closed or when the cursor adopts a new cursor window.

If the cursor previously had a cursor window, then it is closed when the new cursor window is assigned.

<br />

<br />

|                                        Parameters                                         ||
|----------|---------------------------------------------------------------------------------|
| `window` | `CursorWindow`: The new cursor window, typically a remote cursor window. <br /> |

## Protected methods

### finalize

Added in[API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
protected void finalize ()
```

Release the native resources, if they haven't been released yet.

<br />