Type Property

completeFileProtectionUnlessOpen

A hint to set the content protection attribute of the file when writing it out.

Declaration

static var completeFileProtectionUnlessOpen: NSData.WritingOptions { get }

Discussion

In this case, the file cannot be opened for reading or writing when the device is locked, although new files can be created with this class. If one of these files is open when the device is locked, reading and writing are still allowed.