Added in API level 1

SQLiteCursorDriver


interface SQLiteCursorDriver
android.database.sqlite.SQLiteCursorDriver

A driver for SQLiteCursors that is used to create them and gets notified by the cursors it creates on significant events in their lifetimes.

Summary

Public methods
abstract Unit

Called by a SQLiteCursor when it it closed to destroy this object as well.

abstract Unit

Called by a SQLiteCursor when it is released.

abstract Unit

Called by a SQLiteCursor when it is requeried.

abstract Cursor!
query(factory: SQLiteDatabase.CursorFactory!, bindArgs: Array<String!>!)

Executes the query returning a Cursor over the result set.

abstract Unit

Set new bind arguments.

Public methods

cursorClosed

Added in API level 1
abstract fun cursorClosed(): Unit

Called by a SQLiteCursor when it it closed to destroy this object as well.

cursorDeactivated

Added in API level 1
abstract fun cursorDeactivated(): Unit

Called by a SQLiteCursor when it is released.

cursorRequeried

Added in API level 1
abstract fun cursorRequeried(cursor: Cursor!): Unit

Called by a SQLiteCursor when it is requeried.

query

Added in API level 1
abstract fun query(
    factory: SQLiteDatabase.CursorFactory!,
    bindArgs: Array<String!>!
): Cursor!

Executes the query returning a Cursor over the result set.

Parameters
factory SQLiteDatabase.CursorFactory!: The CursorFactory to use when creating the Cursors, or null if standard SQLiteCursors should be returned.
Return
Cursor! a Cursor over the result set

setBindArguments

Added in API level 1
abstract fun setBindArguments(bindArgs: Array<String!>!): Unit

Set new bind arguments. These will take effect in cursorRequeried().

Parameters
bindArgs Array<String!>!: the new arguments