I'm working on a standard Action Extension in my iOS app and the Xcode template contains the lines:
@IBAction func done() {
// Return any edited content to the host app.
// This template doesn't do anything, so we just echo the passed in items.
self.extensionContext!.completeRequest(returningItems: self.extensionContext!.inputItems, completionHandler: nil)
}
Here is the documentation for completeRequest
.
returningItems
to completeRequest
?I made small research for other question, that may be found helpful here.
Shortly:
There is callback in UIActivityViewController
with parameter:
returnedItems - An array of NSExtensionItem objects containing any modified data. Use the items in this array to get any changes made to the original data by an extension
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With