Protocol

UIDocumentPickerDelegate

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.

Topics

Responding to User Actions

func documentPicker(UIDocumentPickerViewController, didPickDocumentsAt: [URL])

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

Beta
func documentPicker(UIDocumentPickerViewController, didPickDocumentAt: URL)

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

Deprecated
func documentPickerWasCancelled(UIDocumentPickerViewController)

Tells the delegate that the user canceled the document picker.

Relationships

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

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