SupportSQLiteOpenHelper.Configuration



The configuration to create an SQLite open helper object using Factory.

Summary

Nested types

Builder class for Configuration.

Public companion functions

SupportSQLiteOpenHelper.Configuration.Builder
builder(context: Context)

Creates a new Configuration.Builder to create an instance of Configuration.

android

Public constructors

Configuration(
    context: Context,
    name: String?,
    callback: SupportSQLiteOpenHelper.Callback,
    useNoBackupDirectory: Boolean,
    allowDataLossOnRecovery: Boolean
)
android

Public properties

Boolean

If true the database will be delete and its data loss in the case that it cannot be opened.

android
SupportSQLiteOpenHelper.Callback

The callback class to handle creation, upgrade and downgrade.

android
Context

Context to use to open or create the database.

android
String?

Name of the database file, or null for an in-memory database.

android
Boolean

If true the database will be stored in the no-backup directory.

android

Public companion functions

builder

fun builder(context: Context): SupportSQLiteOpenHelper.Configuration.Builder

Creates a new Configuration.Builder to create an instance of Configuration.

Parameters
context: Context

to use to open or create the database.

Public constructors

Configuration

Configuration(
    context: Context,
    name: String?,
    callback: SupportSQLiteOpenHelper.Callback,
    useNoBackupDirectory: Boolean = false,
    allowDataLossOnRecovery: Boolean = false
)

Public properties

allowDataLossOnRecovery

val allowDataLossOnRecoveryBoolean

If true the database will be delete and its data loss in the case that it cannot be opened.

callback

val callbackSupportSQLiteOpenHelper.Callback

The callback class to handle creation, upgrade and downgrade.

context

val contextContext

Context to use to open or create the database.

name

val nameString?

Name of the database file, or null for an in-memory database.

useNoBackupDirectory

val useNoBackupDirectoryBoolean

If true the database will be stored in the no-backup directory.