Stay organized with collections
Save and categorize content based on your preferences.
SQLiteTransactionListener
interface SQLiteTransactionListener
A listener for transaction events.
Summary
Public methods |
abstract Unit |
Called immediately after the transaction begins.
|
abstract Unit |
Called immediately before commiting the transaction.
|
abstract Unit |
Called if the transaction is about to be rolled back.
|
Public methods
onBegin
abstract fun onBegin(): Unit
Called immediately after the transaction begins.
onCommit
abstract fun onCommit(): Unit
Called immediately before commiting the transaction.
onRollback
abstract fun onRollback(): Unit
Called if the transaction is about to be rolled back.
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,["# SQLiteTransactionListener\n\nAdded in [API level 5](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nSQLiteTransactionListener\n=========================\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/android/database/sqlite/SQLiteTransactionListener \"View this page in Java\") \n\n```\ninterface SQLiteTransactionListener\n```\n\n|--------------------------------------------------------|\n| [android.database.sqlite.SQLiteTransactionListener](#) |\n\nA listener for transaction events.\n\nSummary\n-------\n\n| Public methods ||\n|---------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------|\n| abstract [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) | [onBegin](#onBegin())`()` Called immediately after the transaction begins. |\n| abstract [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) | [onCommit](#onCommit())`()` Called immediately before commiting the transaction. |\n| abstract [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) | [onRollback](#onRollback())`()` Called if the transaction is about to be rolled back. |\n\nPublic methods\n--------------\n\n### onBegin\n\nAdded in [API level 5](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nabstract fun onBegin(): Unit\n```\n\nCalled immediately after the transaction begins. \n\n### onCommit\n\nAdded in [API level 5](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nabstract fun onCommit(): Unit\n```\n\nCalled immediately before commiting the transaction. \n\n### onRollback\n\nAdded in [API level 5](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nabstract fun onRollback(): Unit\n```\n\nCalled if the transaction is about to be rolled back."]]