Package com.couchbase.lite
Class CouchbaseLite
java.lang.Object
com.couchbase.lite.CouchbaseLite
CouchbaseLite Utility
-
Method Summary
-
Method Details
-
init
public static void init()Initialize CouchbaseLite library. This method MUST be called before using CouchbaseLite.This method expects the current directory to be writeable and will throw an
IllegalStateException
if it is not. Useinit(boolean, File, File)
to specify alternative root and scratch directories.- Throws:
IllegalStateException
- on initialization failure
-
init
public static void init(boolean debug) Initialize CouchbaseLite library. This method MUST be called before using CouchbaseLite.This method expects the current directory to be writeable and will throw an
IllegalStateException
if it is not. Useinit(boolean, File, File)
to specify alternative root and scratch directories.- Parameters:
debug
- true if debugging- Throws:
IllegalStateException
- on initialization failure
-
init
Initialize CouchbaseLite library. This method MUST be called before using CouchbaseLite.This method allows specifying a default root directory for database files, and the scratch directory used for temporary files (the native library, etc). Both directories must be writable by this process.
- Parameters:
debug
- true if debuggingrootDir
- default directory for databasesscratchDir
- scratch directory for SQLite- Throws:
IllegalStateException
- on initialization failure
-