save If Modified
Saves the document to original location if it has been changed. If there were no changes to the document, the document file will not be modified. Note that this may take a while and should not be called on the main thread.
Return
true
if the file was modified and changes were saved. false
if there was nothing to save.
Saves the document to original location if it has been changed. If there were no changes to the document, the document file will not be modified. Note that this may take a while and should not be called on the main thread.
Return
true
if the file was modified and changes were saved, false
if there was nothing to save.
Parameters
Save options for the document.
Saves the document to passed location if it has been changed. If there were no changes to the document, the output file won't be modified. 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).
Return
true
if the file was modified and changes were saved, false
if there was nothing to save.
Parameters
Absolute filepath to which to save the document.
Saves the document to passed location if it has been changed. If there were no changes to the document, the output file won't be modified. 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).
Return
true
if the file was modified and changes were saved, false
if there was nothing to save.
Parameters
Absolute filepath to which to save the document.
Save options for the document.