<!--
{
  "availability" : [
    "iOS: 3.2.0 -",
    "iPadOS: 3.2.0 -",
    "macCatalyst: 13.1.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UIDocumentInteractionControllerDelegate/documentInteractionController(_:didEndSendingToApplication:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(pl)UIDocumentInteractionControllerDelegate(im)documentInteractionController:didEndSendingToApplication:"
  },
  "title" : "documentInteractionController(_:didEndSendingToApplication:)"
}
-->

# documentInteractionController(_:didEndSendingToApplication:)

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

```
optional func documentInteractionController(_ controller: UIDocumentInteractionController, didEndSendingToApplication 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 after the document information has been saved for the specified application.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)