Instance Property

providerIdentifier

An identifier shared by this Document Picker extension and its corresponding File Provider extension. (read-only)

Declaration

var providerIdentifier: String { get }

Discussion

Both the Document Picker View Controller extension and the File Provider extension should pass this identifier to their file coordinator’s setPurposeIdentifier: method. This approach helps coordinate the read and write operations between the two extensions, preventing possible deadlocks.

This property holds the value returned by calling the File Provider extension’s providerIdentifier method.

See Also

Managing the User Interface

func dismissGrantingAccess(to: URL?)

Dismisses the document picker.

var documentPickerMode: UIDocumentPickerMode

The document picker’s file-transfer operation. (read-only)

var documentStorageURL: URL?

The root URL for documents provided by the corresponding File Provider extension. (read-only)

var originalURL: URL?

The URL of the file to be exported. (read-only)

func prepareForPresentation(in: UIDocumentPickerMode)

Performs any custom configuration of the document picker view controller.

var validTypes: [String]?

An array of valid uniform type identifiers.