Instance Method

safariViewController:activityItemsForURL:title:

Tells the delegate that the user tapped an Action button.

Declaration

- (NSArray<UIActivity *> *)safariViewController:(SFSafariViewController *)controller activityItemsForURL:(NSURL *)URL title:(NSString *)title;

Parameters

controller

The view controller.

URL

The URL of the web page that was active when the Action button was tapped.

title

The title of the web page.

Return Value

An array of application-specific services you have chosen to include in the UIActivityViewController object.

Discussion

The view controller calls this method when the view is about to show an activity view controller. Your delegate can provide unique, application-specific services (such as a social media service) to be included with the system-provided sharing services. See UIActivity.

See Also

Working with the View Controller

- safariViewController:didCompleteInitialLoad:

Tells the delegate that the initial URL load completed.

- safariViewControllerDidFinish:

Tells the delegate that the user dismissed the view.