Protocol

UIDocumentInteractionControllerDelegate

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

Declaration

@protocol UIDocumentInteractionControllerDelegate

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

- documentInteractionControllerViewControllerForPreview:

Called when a document interaction controller needs a view controller for presenting a document preview.

- documentInteractionControllerViewForPreview:

Called when a document interaction controller needs the starting point for animating the display of a document preview.

- documentInteractionControllerRectForPreview:

Called when a document interaction controller needs the rectangle to use as the starting point for animating the display of a document preview.

Presenting the User Interface

- documentInteractionControllerWillBeginPreview:

Called when a document interaction controller is about to display a preview for its document.

- documentInteractionControllerDidEndPreview:

Called when a document interaction controller has dismissed its document preview.

- documentInteractionControllerWillPresentOptionsMenu:

Called when a document interaction controller is about to display an options menu.

- documentInteractionControllerDidDismissOptionsMenu:

Called when a document interaction controller has dismissed its options menu.

- documentInteractionControllerWillPresentOpenInMenu:

Called when a document interaction controller is about to display an Open In menu.

- documentInteractionControllerDidDismissOpenInMenu:

Called when a document interaction controller has dismissed its Open In menu.

Opening Files

- documentInteractionController:willBeginSendingToApplication:

Called when a document interaction controller’s document is about to be opened by the specified application.

- documentInteractionController:didEndSendingToApplication:

Called when a document interaction controller’s document has been handed off to the specified application.

Managing Actions

- documentInteractionController:canPerformAction:

Called when a document interaction controller needs to know whether the specified action can be performed on the associated document.

Deprecated
- documentInteractionController:performAction:

Called when a document interaction controller wants its delegate to perform a specified action with the associated document.

Deprecated

Relationships

Inherits From

See Also

Handling Document-Related Interactions

delegate

The delegate you want to receive document interaction notifications.