public final class DatabaseConfiguration extends Object
Constructor and Description |
---|
DatabaseConfiguration(android.content.Context context) |
DatabaseConfiguration(DatabaseConfiguration config) |
Modifier and Type | Method and Description |
---|---|
ConflictResolver |
getConflictResolver()
Returns the conflict resolver for this database.
|
String |
getDirectory()
Returns the path to the directory to store the database in.
|
EncryptionKey |
getEncryptionKey()
Returns a key to encrypt the database with.
|
DatabaseConfiguration |
setConflictResolver(ConflictResolver conflictResolver)
Sets a custom conflict resolver used for solving the conflicts
when saving or deleting documents in the database.
|
DatabaseConfiguration |
setDirectory(String directory)
Set the path to the directory to store the database in.
|
DatabaseConfiguration |
setEncryptionKey(EncryptionKey encryptionKey)
Set a key to encrypt the database with.
|
public DatabaseConfiguration(android.content.Context context)
public DatabaseConfiguration(DatabaseConfiguration config)
public DatabaseConfiguration setDirectory(String directory)
directory
- the directorypublic DatabaseConfiguration setEncryptionKey(EncryptionKey encryptionKey)
encryptionKey
- the keypublic DatabaseConfiguration setConflictResolver(ConflictResolver conflictResolver)
conflictResolver
- The conflict resolver.public String getDirectory()
public EncryptionKey getEncryptionKey()
public ConflictResolver getConflictResolver()