SQLiteCursorCompat

Added in 1.1.0

public final class SQLiteCursorCompat


Helper for accessing features in AbstractWindowedCursor

Summary

Public methods

static void
setFillWindowForwardOnly(
    @NonNull SQLiteCursor cursor,
    boolean fillWindowForwardOnly
)

Controls whether the cursor is filled starting at the position passed to moveToPosition.

Public methods

setFillWindowForwardOnly

Added in 1.1.0
public static void setFillWindowForwardOnly(
    @NonNull SQLiteCursor cursor,
    boolean fillWindowForwardOnly
)

Controls whether the cursor is filled starting at the position passed to moveToPosition.

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.