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 |
cursorRequeried(cursor: Cursor!) 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 |
setBindArguments(bindArgs: Array<String!>!) Set new bind arguments. |
Public methods
cursorClosed
abstract fun cursorClosed(): Unit
Called by a SQLiteCursor when it it closed to destroy this object as well.
cursorDeactivated
abstract fun cursorDeactivated(): Unit
Called by a SQLiteCursor when it is released.
cursorRequeried
abstract fun cursorRequeried(cursor: Cursor!): Unit
Called by a SQLiteCursor when it is requeried.
query
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
abstract fun setBindArguments(bindArgs: Array<String!>!): Unit
Set new bind arguments. These will take effect in cursorRequeried().
Parameters | |
---|---|
bindArgs |
Array<String!>!: the new arguments |