Class

UIDocumentPickerExtensionViewController

The principal class for the Document Picker View Controller extension.

Declaration

@interface UIDocumentPickerExtensionViewController : UIViewController

Overview

The Document Picker View Controller extension can perform import and export operations on its own. If you want to support open and move operations, you must pair it with a File Provider extension.

When creating a Document Picker extension, you must subclass UIDocumentPickerExtensionViewController to provide the document picker’s user interface. Your subclass presents a list of available documents and destinations to the user. When the user makes a selection, you trigger the file transfer and pass the selected URL back to the host app.

For more information on creating Document Picker extensions, see Document Provider.

Topics

Managing the User Interface

- dismissGrantingAccessToURL:

Dismisses the document picker.

documentPickerMode

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

documentStorageURL

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

originalURL

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

- prepareForPresentationInMode:

Performs any custom configuration of the document picker view controller.

providerIdentifier

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

validTypes

An array of valid uniform type identifiers.

Relationships

Inherits From

See Also

Document Provider

NSFileProviderExtension

The principal class for the File Provider extension.