SupportSQLiteOpenHelper.Configuration.Builder


public class SupportSQLiteOpenHelper.Configuration.Builder


Builder class for Configuration.

Summary

Public methods

@NonNull SupportSQLiteOpenHelper.Configuration.Builder
allowDataLossOnRecovery(boolean allowDataLossOnRecovery)

Sets whether to delete and recreate the database file in situations when the database file cannot be opened, thus allowing for its data to be lost.

@NonNull SupportSQLiteOpenHelper.Configuration

Throws an IllegalArgumentException if the Callback is null.

@NonNull SupportSQLiteOpenHelper.Configuration.Builder
@NonNull SupportSQLiteOpenHelper.Configuration.Builder
name(String name)
@NonNull SupportSQLiteOpenHelper.Configuration.Builder
noBackupDirectory(boolean useNoBackupDirectory)

Sets whether to use a no backup directory or not.

Public methods

allowDataLossOnRecovery

Added in 2.3.0
public @NonNull SupportSQLiteOpenHelper.Configuration.Builder allowDataLossOnRecovery(boolean allowDataLossOnRecovery)

Sets whether to delete and recreate the database file in situations when the database file cannot be opened, thus allowing for its data to be lost.