Package com.couchbase.lite
Class CouchbaseLite
java.lang.Object
com.couchbase.lite.CouchbaseLite
-
Method Details
-
init
public static void init(@NonNull android.content.Context ctxt) Initialize CouchbaseLite library. This method MUST be called before using CouchbaseLite.- Parameters:
ctxt
- the ApplicationContext.- Throws:
IllegalStateException
- on initialization failure
-
init
public static void init(@NonNull android.content.Context ctxt, boolean debug) Initialize CouchbaseLite library. This method MUST be called before using CouchbaseLite.- Parameters:
debug
- true to enable debugging- Throws:
IllegalStateException
- on initialization failure
-
init
public static void init(@NonNull android.content.Context ctxt, boolean debug, @NonNull File rootDir, @NonNull File scratchDir) Initialize CouchbaseLite library. This method allows specifying a default root directory for database files, and the scratch directory used for SQLite temporary files. Use it with great caution.- Parameters:
ctxt
- Application contextdebug
- to enable debuggingrootDir
- default directory for databasesscratchDir
- scratch directory for SQLite- Throws:
IllegalStateException
- on initialization failure
-