Added in API level 15

CrossProcessCursorWrapper


open class CrossProcessCursorWrapper : CursorWrapper, CrossProcessCursor

Cursor wrapper that implements CrossProcessCursor.

If the wrapped cursor implements CrossProcessCursor, then the wrapper delegates fillWindow, getWindow() and onMove to it. Otherwise, the wrapper provides default implementations of these methods that traverse the contents of the cursor similar to AbstractCursor.fillWindow.

This wrapper can be used to adapt an ordinary Cursor into a CrossProcessCursor.

Summary

Inherited constants
Int FIELD_TYPE_BLOB

Value returned by getType(int) if the specified column type is blob

Int FIELD_TYPE_FLOAT

Value returned by getType(int) if the specified column type is float

Int FIELD_TYPE_INTEGER

Value returned by getType(int) if the specified column type is integer

Int FIELD_TYPE_NULL

Value returned by getType(int) if the specified column is null

Int FIELD_TYPE_STRING

Value returned by getType(int) if the specified column type is string

Public constructors

Creates a cross process cursor wrapper.

Public methods
open Unit
fillWindow(position: Int, window: CursorWindow!)

open CursorWindow!

open Boolean
onMove(oldPosition: Int, newPosition: Int)

Inherited functions
Unit close()

Unit copyStringToBuffer(columnIndex: Int, buffer: CharArrayBuffer!)

Unit deactivate()

ByteArray! getBlob(columnIndex: Int)

Int getColumnCount()

Int getColumnIndex(columnName: String!)

Int getColumnIndexOrThrow(columnName: String!)

String! getColumnName(columnIndex: Int)

Array<String!>! getColumnNames()

Int getCount()

Double getDouble(columnIndex: Int)

Bundle! getExtras()

Float getFloat(columnIndex: Int)

Int getInt(columnIndex: Int)

Long getLong(columnIndex: Int)

Uri! getNotificationUri()

MutableList<Uri!>? getNotificationUris()

Int getPosition()

Short getShort(columnIndex: Int)

String! getString(columnIndex: Int)

Int getType(columnIndex: Int)

Boolean getWantsAllOnMoveCalls()

Cursor! getWrappedCursor()

Gets the underlying cursor that is wrapped by this instance.

Boolean isAfterLast()

Boolean isBeforeFirst()

Boolean isClosed()

Boolean isFirst()

Boolean isLast()

Boolean isNull(columnIndex: Int)

Boolean move(offset: Int)

Boolean moveToFirst()

Boolean moveToLast()

Boolean moveToNext()

Boolean moveToPosition(position: Int)

Boolean moveToPrevious()

Unit registerContentObserver(observer: ContentObserver!)

Unit registerDataSetObserver(observer: DataSetObserver!)

Boolean requery()

Bundle! respond(extras: Bundle!)

Unit setExtras(extras: Bundle!)

Unit setNotificationUri(cr: ContentResolver!, uri: Uri!)

Unit setNotificationUris(cr: ContentResolver, uris: MutableList<Uri!>)

Unit unregisterContentObserver(observer: ContentObserver!)

Unit unregisterDataSetObserver(observer: DataSetObserver!)

Public constructors

CrossProcessCursorWrapper

Added in API level 15
CrossProcessCursorWrapper(cursor: Cursor!)

Creates a cross process cursor wrapper.

Parameters
cursor Cursor!: The underlying cursor to wrap.

Public methods

fillWindow

Added in API level 15
open fun fillWindow(
    position: Int,
    window: CursorWindow!
): Unit
Parameters
position Int: The zero-based index of the first row to copy into the window.
window CursorWindow!: The window to fill.

getWindow

Added in API level 15
open fun getWindow(): CursorWindow!
Return
CursorWindow! The pre-filled window, or null if none.

onMove

Added in API level 15
open fun onMove(
    oldPosition: Int,
    newPosition: Int
): Boolean
Parameters
oldPosition Int: The position that we're moving from.
newPosition Int: The position that we're moving to.
Return
Boolean True if the move is successful, false otherwise.