SupportSQLiteOpenHelper.Configuration

class 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.

Public constructors

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

Public properties

Boolean

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

SupportSQLiteOpenHelper.Callback

The callback class to handle creation, upgrade and downgrade.

Context

Context to use to open or create the database.

String?

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

Boolean

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

Public companion functions

builder

Added in 2.3.0
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

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

Public properties

allowDataLossOnRecovery

Added in 2.3.0
val allowDataLossOnRecoveryBoolean

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

callback

Added in 2.0.0
val callbackSupportSQLiteOpenHelper.Callback

The callback class to handle creation, upgrade and downgrade.

context

Added in 2.0.0
val contextContext

Context to use to open or create the database.

name

Added in 2.0.0
val nameString?

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

useNoBackupDirectory

Added in 2.1.0
val useNoBackupDirectoryBoolean

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