save

abstract fun save(@NonNull path: String)

Saves the document to an external file even if it hasn't been changed. Note that this may take a while and should not be called on the main thread. This will not clear the wasModified flag on this document instance, and will not replace the source of this document either (i.e. subsequent calls to saveIfModified will still save the document back to the original file).

Parameters

path

Absolute filepath to the output document file.


abstract fun save(@NonNull path: String, @NonNull saveOptions: DocumentSaveOptions)

Saves the document to an external file even if it hasn't been changed. Note that this may take a while and should not be called on the main thread. This will not clear the wasModified flag on this document instance, and will not replace the source of this document either (i.e. subsequent calls to saveIfModified will still save the document back to the original file).

Parameters

path

Absolute filepath to the output document file.

saveOptions

Save options for the document, may be null to use default set.