A set of methods that you must implement to track when the user selects a document or destination, or to track when the document picker is canceled.


Responding to User Actions

func documentPicker(UIDocumentPickerViewController, didPickDocumentsAt: [URL])

Tells the delegate that the user has selected one or more documents.

func documentPicker(UIDocumentPickerViewController, didPickDocumentAt: URL)

Tells the delegate that the user has selected a document or a destination.

func documentPickerWasCancelled(UIDocumentPickerViewController)

Tells the delegate that the user canceled the document picker.


Inherits From

See Also

Getting the User-Selected Document

var delegate: UIDocumentPickerDelegate?

The document picker’s delegate.

var allowsMultipleSelection: Bool

A Boolean value that determines whether the user can select more than one document at a time.


Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software