SQLiteCursorCompat
public
final
class
SQLiteCursorCompat
extends Object
java.lang.Object | |
↳ | androidx.core.database.sqlite.SQLiteCursorCompat |
Helper for accessing features in AbstractWindowedCursor
Summary
Public methods | |
---|---|
static
void
|
setFillWindowForwardOnly(SQLiteCursor cursor, boolean fillWindowForwardOnly)
Controls whether the cursor is filled starting at the position passed to
|
Inherited methods | |
---|---|
Public methods
setFillWindowForwardOnly
public static void setFillWindowForwardOnly (SQLiteCursor cursor, boolean fillWindowForwardOnly)
Controls whether the cursor is filled starting at the position passed to
AbstractCursor.moveToPosition(int)
.
By default, SQLiteCursor will optimize for accesses around the requested row index by loading data on either side of it. Pass true to this method to disable that behavior, useful to optimize multi-window, continuous reads.
Prior to Android P, this method will do nothing.
Parameters | |
---|---|
cursor |
SQLiteCursor |
fillWindowForwardOnly |
boolean |