saveDocument

abstract fun saveDocument(@NonNull context: Context, @Nullable options: DocumentSaveOptions): Completable

Saves all changes made to the document. Saving will start as soon as the Completable is subscribed.

Scheduler:
saveDocument() does not operate by default on a particular Scheduler.

Return

Completable that finishes once the document saving is done.

Parameters

context

The context to use.

options

Document saving options, default saving options will be used when null.


abstract fun saveDocument(@NonNull context: Context, @NonNull outputStream: OutputStream, @Nullable options: DocumentSaveOptions): Completable

Saves all changes made to the document to a given output stream. Saving will start as soon as the Completable is subscribed.

Scheduler:
saveDocument(OutputStream) does not operate by default on a particular .

Return

Completable that finishes once the document saving is done.

Parameters

context

The context to use.

outputStream

Destination stream where the document will be saved.

options

Document saving options, default saving options will be used when null.