Join us on the livestream at Android Dev Summit on 7-8 November 2018, starting at 10AM PDT!

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 AbstractCursor.moveToPosition(int).

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