Stay organized with collections
Save and categorize content based on your preferences.
SQLiteCursorDriver
interface 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! |
Executes the query returning a Cursor over the result set.
|
abstract Unit |
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.
setBindArguments
abstract fun setBindArguments(bindArgs: Array<String!>!): Unit
Set new bind arguments. These will take effect in cursorRequeried().
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-10 UTC."],[],[],null,["# SQLiteCursorDriver\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nSQLiteCursorDriver\n==================\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/android/database/sqlite/SQLiteCursorDriver \"View this page in Java\") \n\n```\ninterface SQLiteCursorDriver\n```\n\n|-------------------------------------------------|\n| [android.database.sqlite.SQLiteCursorDriver](#) |\n\nA driver for SQLiteCursors that is used to create them and gets notified by the cursors it creates on significant events in their lifetimes.\n\nSummary\n-------\n\n| Public methods ||\n|---------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| abstract [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) | [cursorClosed](#cursorClosed())`()` Called by a SQLiteCursor when it it closed to destroy this object as well. |\n| abstract [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) | [cursorDeactivated](#cursorDeactivated())`()` Called by a SQLiteCursor when it is released. |\n| abstract [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) | [cursorRequeried](#cursorRequeried(android.database.Cursor))`(`cursor:` `[Cursor](../Cursor.html#)!`)` Called by a SQLiteCursor when it is requeried. |\n| abstract [Cursor](../Cursor.html#)! | [query](#query(android.database.sqlite.SQLiteDatabase.CursorFactory,%20kotlin.Array))`(`factory:` `[SQLiteDatabase.CursorFactory](/reference/kotlin/android/database/sqlite/SQLiteDatabase.CursorFactory)!`, `bindArgs:` `[Array](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-array/index.html)\u003c[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!\u003e!`)` Executes the query returning a Cursor over the result set. |\n| abstract [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) | [setBindArguments](#setBindArguments(kotlin.Array))`(`bindArgs:` `[Array](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-array/index.html)\u003c[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!\u003e!`)` Set new bind arguments. |\n\nPublic methods\n--------------\n\n### cursorClosed\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nabstract fun cursorClosed(): Unit\n```\n\nCalled by a SQLiteCursor when it it closed to destroy this object as well. \n\n### cursorDeactivated\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nabstract fun cursorDeactivated(): Unit\n```\n\nCalled by a SQLiteCursor when it is released. \n\n### cursorRequeried\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nabstract fun cursorRequeried(cursor: Cursor!): Unit\n```\n\nCalled by a SQLiteCursor when it is requeried. \n\n### query\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nabstract fun query(\n factory: SQLiteDatabase.CursorFactory!, \n bindArgs: Array\u003cString!\u003e!\n): Cursor!\n```\n\nExecutes the query returning a Cursor over the result set.\n\n| Parameters ||\n|-----------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `factory` | [SQLiteDatabase.CursorFactory](/reference/kotlin/android/database/sqlite/SQLiteDatabase.CursorFactory)!: The CursorFactory to use when creating the Cursors, or null if standard SQLiteCursors should be returned. |\n\n| Return ||\n|----------------------------|------------------------------|\n| [Cursor](../Cursor.html#)! | a Cursor over the result set |\n\n### setBindArguments\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nabstract fun setBindArguments(bindArgs: Array\u003cString!\u003e!): Unit\n```\n\nSet new bind arguments. These will take effect in cursorRequeried().\n\n| Parameters ||\n|------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `bindArgs` | [Array](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-array/index.html)\\\u003c[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!\\\u003e!: the new arguments |"]]