Structure

URLFileProtection

Protection level values that can be associated with a URL resource key.

Declaration

struct URLFileProtection

Overview

These values can be associated with the URLResourceKey key fileProtectionKey.

Topics

Creating a URL File Protection Type

init(rawValue: String)

Creates a URL file protection type value.

Protection Levels

static let complete: URLFileProtection

The file is stored in an encrypted format on disk and cannot be read from or written to while the device is locked or booting.

static let completeUnlessOpen: URLFileProtection

The file is stored in an encrypted format on disk after it is closed.

static let completeUntilFirstUserAuthentication: URLFileProtection

The file is stored in an encrypted format on disk and cannot be accessed until after the device has booted.

static let none: URLFileProtection

The file has no special protections associated with it.

Relationships

See Also

Supporting Types

struct FileManager.DirectoryEnumerationOptions

Options for enumerating the contents of directories.

enum FileManager.SearchPathDirectory

The location of significant directories.

struct FileManager.SearchPathDomainMask

Domain constants specifying base locations to use when you search for significant directories.

struct FileAttributeKey

Keys in dictionaries used to get and set file attributes.

struct FileAttributeType

Values representing a file’s type attribute.

struct FileProtectionType

Protection level values that can be associated with a file attribute key.