SupportSQLiteOpenHelper.Configuration.Builder

public static class SupportSQLiteOpenHelper.Configuration.Builder
extends Object

java.lang.Object
   ↳ androidx.sqlite.db.SupportSQLiteOpenHelper.Configuration.Builder


Builder class for SupportSQLiteOpenHelper.Configuration.

Summary

Public methods

SupportSQLiteOpenHelper.Configuration build()

Throws an IllegalArgumentException if the SupportSQLiteOpenHelper.Callback is null.

SupportSQLiteOpenHelper.Configuration.Builder callback(SupportSQLiteOpenHelper.Callback callback)
SupportSQLiteOpenHelper.Configuration.Builder name(String name)
SupportSQLiteOpenHelper.Configuration.Builder noBackupDirectory(boolean useNoBackUpDirectory)

Sets whether to use a no backup directory or not.

Inherited methods

Public methods

callback

public SupportSQLiteOpenHelper.Configuration.Builder callback (SupportSQLiteOpenHelper.Callback callback)

Parameters
callback SupportSQLiteOpenHelper.Callback: The callback class to handle creation, upgrade and downgrade.

Returns
SupportSQLiteOpenHelper.Configuration.Builder this

name

public SupportSQLiteOpenHelper.Configuration.Builder name (String name)

Parameters
name String: Name of the database file, or null for an in-memory database.

Returns
SupportSQLiteOpenHelper.Configuration.Builder This

noBackupDirectory

public SupportSQLiteOpenHelper.Configuration.Builder noBackupDirectory (boolean useNoBackUpDirectory)

Sets whether to use a no backup directory or not.

Parameters
useNoBackUpDirectory boolean: If true the database file will be stored in the no-backup directory.

Returns
SupportSQLiteOpenHelper.Configuration.Builder this