Save the date! Android Dev Summit is coming to Mountain View, CA on November 7-8, 2018.
added in version 1.1.0
belongs to Maven artifact android.arch.persistence:db:1.1.0-beta2

SupportSQLiteOpenHelper.Configuration

public static class SupportSQLiteOpenHelper.Configuration
extends Object

java.lang.Object
   ↳ android.arch.persistence.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 1.1.0
SupportSQLiteOpenHelper.Callback callback

The callback class to handle creation, upgrade and downgrade.

context

added in version 1.1.0
Context context

Context to use to open or create the database.

name

added in version 1.1.0
String name

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

Public methods

builder

added in version 1.1.0
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