Added in API level 11

DefaultDatabaseErrorHandler

class DefaultDatabaseErrorHandler : DatabaseErrorHandler
kotlin.Any
   ↳ android.database.DefaultDatabaseErrorHandler

Default class used to define the action to take when database corruption is reported by sqlite.

An application can specify an implementation of DatabaseErrorHandler on the following:

The specified DatabaseErrorHandler is used to handle database corruption errors, if they occur.

If null is specified for the DatabaseErrorHandler param in the above calls, this class is used as the default DatabaseErrorHandler.

Summary

Public constructors

Public methods
Unit

defines the default method to be invoked when database corruption is detected.

Public constructors

DefaultDatabaseErrorHandler

DefaultDatabaseErrorHandler()

Public methods

onCorruption

Added in API level 11
fun onCorruption(dbObj: SQLiteDatabase!): Unit

defines the default method to be invoked when database corruption is detected.

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