Contents

UIDocumentInteractionControllerDelegate

A set of methods you can implement to respond to messages from a document interaction controller.

Declaration

protocol UIDocumentInteractionControllerDelegate : NSObjectProtocol

Overview

Use this protocol to participate when document previews are displayed and when a document is about to be opened by another application. You can also use this protocol to respond to commands (such as “copy” and “print”) from a document interaction controller’s options menu.

If you use a document interaction controller to display a document preview, your delegate must implement the documentInteractionControllerViewControllerForPreview(_:) method. All other methods of this protocol are optional.

For more information about using a document interaction controller, see UIDocumentInteractionController.

Topics

Configuring the parent view controller

Presenting the user interface

Opening files

Deprecated

See Also

Handling document-related interactions