Contents

documentBrowser(_:applicationActivitiesForDocumentURLs:)

Asks the delegate for additional activities when displaying an activity view.

Declaration

optional func documentBrowser(_ controller: UIDocumentBrowserViewController, applicationActivitiesForDocumentURLs documentURLs: [URL]) -> [UIActivity]

Parameters

  • controller:

    The current document browser.

  • documentURLs:

    The URL of one or more documents to share.

Mentioned in

Return Value

An array of custom UIActivity objects.

Discussion

The document browser displays an activity view when the user shares a document (for example, when the user long presses a document and then chooses Share from the Edit Menu).

Implement this method to add custom activities to the activity view. Create and return an array containing your custom UIActivity subclasses. Your UIActivity subclasses should perform actions on the URLs passed to this method.

See Also

Working with the browser’s activity view