Instance Method

documentBrowser:applicationActivitiesForDocumentURLs:

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

Declaration

- (NSArray<__kindof UIActivity *> *)documentBrowser:(UIDocumentBrowserViewController *)controller applicationActivitiesForDocumentURLs:(NSArray<NSURL *> *)documentURLs;

Parameters

controller

The current document browser.

documentURLs

The URL of one or more documents to share.

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

- documentBrowser:willPresentActivityViewController:

Tells the delegate that the document browser will display an activity view.