# CrossProcessCursor

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/CrossProcessCursor#inhconstants) \| [Methods](https://developer.android.com/reference/android/database/CrossProcessCursor#pubmethods) \| [Inherited Methods](https://developer.android.com/reference/android/database/CrossProcessCursor#inhmethods)  

# CrossProcessCursor

*** ** * ** ***

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


`
public


interface
CrossProcessCursor
`


`


implements

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


`

|-------------------------------------|
| android.database.CrossProcessCursor |

|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| Known indirect subclasses [AbstractCursor](https://developer.android.com/reference/android/database/AbstractCursor), [AbstractWindowedCursor](https://developer.android.com/reference/android/database/AbstractWindowedCursor), [CrossProcessCursorWrapper](https://developer.android.com/reference/android/database/CrossProcessCursorWrapper), [MatrixCursor](https://developer.android.com/reference/android/database/MatrixCursor), [MergeCursor](https://developer.android.com/reference/android/database/MergeCursor), [SQLiteCursor](https://developer.android.com/reference/android/database/sqlite/SQLiteCursor) |-----------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------| | [AbstractCursor](https://developer.android.com/reference/android/database/AbstractCursor)                       | This is an abstract cursor class that handles a lot of the common code that all cursors need to deal with and is provided for convenience reasons.               | | [AbstractWindowedCursor](https://developer.android.com/reference/android/database/AbstractWindowedCursor)       | A base class for Cursors that store their data in [CursorWindow](https://developer.android.com/reference/android/database/CursorWindow)s.                        | | [CrossProcessCursorWrapper](https://developer.android.com/reference/android/database/CrossProcessCursorWrapper) | Cursor wrapper that implements [CrossProcessCursor](https://developer.android.com/reference/android/database/CrossProcessCursor).                                | | [MatrixCursor](https://developer.android.com/reference/android/database/MatrixCursor)                           | A mutable cursor implementation backed by an array of `Object`s.                                                                                                 | | [MergeCursor](https://developer.android.com/reference/android/database/MergeCursor)                             | A convenience class that lets you present an array of Cursors as a single linear Cursor.                                                                         | | [SQLiteCursor](https://developer.android.com/reference/android/database/sqlite/SQLiteCursor)                    | A Cursor implementation that exposes results from a query on a [SQLiteDatabase](https://developer.android.com/reference/android/database/sqlite/SQLiteDatabase). | |

<br />

*** ** * ** ***

A cross process cursor is an extension of a [Cursor](https://developer.android.com/reference/android/database/Cursor) that also supports
usage from remote processes.


The contents of a cross process cursor are marshalled to the remote process by
filling [CursorWindow](https://developer.android.com/reference/android/database/CursorWindow) objects using [fillWindow(int, CursorWindow)](https://developer.android.com/reference/android/database/CrossProcessCursor#fillWindow(int,%20android.database.CursorWindow)). As an optimization,
the cursor can provide a pre-filled window to use via [getWindow()](https://developer.android.com/reference/android/database/CrossProcessCursor#getWindow()) thereby
obviating the need to copy the data to yet another cursor window.

## 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    | |

|                                                                                                                                                                                             ### Public methods                                                                                                                                                                                              ||
|---------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| ` 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. |

| ### Inherited methods |
|-----------------------|---|
| 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 methods

### fillWindow

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

```
public abstract void fillWindow (int position, 
                CursorWindow window)
```

Copies cursor data into the window.


Clears the window and fills it with data beginning at the requested
row position until all of the data in the cursor is exhausted
or the window runs out of space.


The filled window uses the same row indices as the original cursor.
For example, if you fill a window starting from row 5 from the cursor,
you can query the contents of row 5 from the window just by asking it
for row 5 because there is a direct correspondence between the row indices
used by the cursor and the window.


The current position of the cursor, as returned by [Cursor.getPosition()](https://developer.android.com/reference/android/database/Cursor#getPosition()),
is not changed by this method.

<br />

<br />

|                                        Parameters                                        ||
|------------|------------------------------------------------------------------------------|
| `position` | `int`: The zero-based index of the first row to copy into the window. <br /> |
| `window`   | `CursorWindow`: The window to fill. <br />                                   |

### getWindow

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

```
public abstract CursorWindow getWindow ()
```

Returns a pre-filled window that contains the data within this cursor.


In particular, the window contains the row indicated by [Cursor.getPosition](https://developer.android.com/reference/android/database/Cursor#getPosition()).
The window's contents are automatically scrolled whenever the current
row moved outside the range covered by the window.

<br />

<br />

|                                                                Returns                                                                ||
|---------------------------------------------------------------------------------------|------------------------------------------------|
| [CursorWindow](https://developer.android.com/reference/android/database/CursorWindow) | The pre-filled window, or null if none. <br /> |

### onMove

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

```
public abstract 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.


This function should be called by methods such as [Cursor.moveToPosition(int)](https://developer.android.com/reference/android/database/Cursor#moveToPosition(int)),
so it will typically not be called from outside of the cursor class itself.

<br />

<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 /> |