Contents

documentInteractionController(_:willBeginSendingToApplication:)

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

Declaration

optional func documentInteractionController(_ controller: UIDocumentInteractionController, willBeginSendingToApplication application: String?)

Parameters

  • controller:

    The document interaction controller whose document is about to be opened.

  • application:

    The bundle identifier of the application that is about to open the document. This value corresponds to the value in the CFBundleIdentifier key of the application’s Info.plist file.

Discussion

This method is called when the user chooses to open a document, which could occur from within a document preview. When a document is passed to another application, the contents of the document interaction controller’s annotation property are passed with it. You can use this method to configure the contents of that property or prepare your own application for handing off the document.

See Also

Opening files