Google 致力于为黑人社区推动种族平等。查看具体举措

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

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.