File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed
objectbox-java/src/main/java/io/objectbox Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -317,6 +317,9 @@ public BoxStoreBuilder failedReadTxAttemptCallback(TxCallback failedReadTxAttemp
317
317
return this ;
318
318
}
319
319
320
+ /**
321
+ * Let's you specify an DB file to be used during initial start of the app (no DB file exists yet).
322
+ */
320
323
@ Experimental
321
324
public BoxStoreBuilder initialDbFile (final File initialDbFile ) {
322
325
return initialDbFile (new Factory <InputStream >() {
@@ -327,6 +330,10 @@ public InputStream provide() throws FileNotFoundException {
327
330
});
328
331
}
329
332
333
+ /**
334
+ * Let's you specify a provider for a DB file to be used during initial start of the app (no DB file exists yet).
335
+ * The provider will only be called if no DB file exists yet.
336
+ */
330
337
@ Experimental
331
338
public BoxStoreBuilder initialDbFile (Factory <InputStream > initialDbFileFactory ) {
332
339
this .initialDbFileFactory = initialDbFileFactory ;
You can’t perform that action at this time.
0 commit comments