SQLiteCursorCompat
class SQLiteCursorCompat
kotlin.Any | |
↳ | androidx.core.database.sqlite.SQLiteCursorCompat |
Helper for accessing features in android.database.AbstractWindowedCursor
Summary
Public methods | |
---|---|
static Unit |
setFillWindowForwardOnly(@NonNull cursor: SQLiteCursor, fillWindowForwardOnly: Boolean) Controls whether the cursor is filled starting at the position passed to |
Public methods
setFillWindowForwardOnly
static fun setFillWindowForwardOnly(
@NonNull cursor: SQLiteCursor,
fillWindowForwardOnly: Boolean
): Unit
Controls whether the cursor is filled starting at the position passed to SQLiteCursor#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.