added in version 1.0.0
belongs to Maven artifact androidx.core:core:1.0.0-beta01

SQLiteCursorCompat

public final class SQLiteCursorCompat
extends Object

java.lang.Object
   ↳ androidx.core.database.sqlite.SQLiteCursorCompat


Helper for accessing features in AbstractWindowedCursor

Summary

Public methods

void setFillWindowForwardOnly(SQLiteCursor cursor, boolean fillWindowForwardOnly)

Controls whether the cursor is filled starting at the position passed to AbstractCursor.moveToPosition(int).

Inherited methods

Public methods

setFillWindowForwardOnly

added in version 1.0.0
public 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