added in version 2.0.0
belongs to Maven artifact androidx.sqlite:sqlite:2.0.0-beta01

SupportSQLiteOpenHelper.Configuration

public static class SupportSQLiteOpenHelper.Configuration
extends Object

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


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

Summary

Nested classes

class SupportSQLiteOpenHelper.Configuration.Builder

Builder class for SupportSQLiteOpenHelper.Configuration

Fields

public final SupportSQLiteOpenHelper.Callback callback

The callback class to handle creation, upgrade and downgrade.

public final Context context

Context to use to open or create the database.

public final String name

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

Public methods

static SupportSQLiteOpenHelper.Configuration.Builder builder(Context context)

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

Inherited methods

Fields

callback

added in version 2.0.0
public final SupportSQLiteOpenHelper.Callback callback

The callback class to handle creation, upgrade and downgrade.

context

added in version 2.0.0
public final Context context

Context to use to open or create the database.

name

added in version 2.0.0
public final String name

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

Public methods

builder

added in version 2.0.0
public static SupportSQLiteOpenHelper.Configuration.Builder builder (Context context)

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

Parameters
context Context: to use to open or create the database.

Returns
SupportSQLiteOpenHelper.Configuration.Builder