Stay organized with collections
Save and categorize content based on your preferences.
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
| Public constructors |
|
Creates a cross process cursor wrapper.
|
Public constructors
CrossProcessCursorWrapper
CrossProcessCursorWrapper(cursor: Cursor!)
Creates a cross process cursor wrapper.
| Parameters |
cursor |
Cursor!: The underlying cursor to wrap. |
Public methods
fillWindow
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. |
onMove
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. |
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-10 UTC."],[],[]]