Class CouchbaseLite


  • public final class CouchbaseLite
    extends Object
    • Method Detail

      • init

        public static void init​(@NonNull
                                android.content.Context ctxt)
        Initialize CouchbaseLite library. This method MUST be called before using CouchbaseLite.
      • init

        public static void init​(@NonNull
                                android.content.Context ctxt,
                                boolean debug)
        Initialize CouchbaseLite library. This method MUST be called before using CouchbaseLite.
      • init

        public static void init​(@NonNull
                                android.content.Context ctxt,
                                boolean debug,
                                @NonNull
                                File rootDbDir,
                                @NonNull
                                File scratchDir)
        Initialize CouchbaseLite library. This method allows specifying a root directory for CBL files. Use this version with great caution.
        Parameters:
        ctxt - Application context
        debug - true if debugging
        rootDbDir - default directory for databases
        scratchDir - scratch directory for SQLite