interface DatabaseErrorHandler

An interface to let apps define an action to take when database corruption is detected.

Summary

Public methods
abstract Unit

The method invoked when database corruption is detected.

Public methods

onCorruption

abstract fun onCorruption(dbObj: SQLiteDatabase!): Unit

The method invoked when database corruption is detected.

Parameters
dbObj SQLiteDatabase!: the SQLiteDatabase object representing the database on which corruption is detected.

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.