Added in API level 15

CrossProcessCursorWrapper


open class CrossProcessCursorWrapper : CursorWrapper, CrossProcessCursor
kotlin.Any
   ↳ android.database.CursorWrapper
   ↳ android.database.CrossProcessCursorWrapper

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

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.