public interface SFSafariViewControllerDelegate
| Modifier and Type | Method and Description |
|---|---|
default NSArray<? extends UIActivity> |
safariViewControllerActivityItemsForURLTitle(SFSafariViewController controller,
NSURL URL,
java.lang.String title)
Called when the view controller is about to show UIActivityViewController after the user taps the action button.
|
default void |
safariViewControllerDidCompleteInitialLoad(SFSafariViewController controller,
boolean didLoadSuccessfully)
Invoked when the initial URL load is complete.
|
default void |
safariViewControllerDidFinish(SFSafariViewController controller)
Delegate callback called when the user taps the Done button.
|
default NSArray<java.lang.String> |
safariViewControllerExcludedActivityTypesForURLTitle(SFSafariViewController controller,
NSURL URL,
java.lang.String title)
Allows you to exclude certain UIActivityTypes from the UIActivityViewController presented when the user taps the action button.
|
default void |
safariViewControllerInitialLoadDidRedirectToURL(SFSafariViewController controller,
NSURL URL)
Called when the browser is redirected to another URL while loading the initial page.
|
default void |
safariViewControllerWillOpenInBrowser(SFSafariViewController controller)
Called when the user opens the current page in the default browser by tapping the toolbar button.
|
default NSArray<? extends UIActivity> safariViewControllerActivityItemsForURLTitle(SFSafariViewController controller, NSURL URL, java.lang.String title)
URL - the URL of the web page.title - the title of the web page.default void safariViewControllerDidCompleteInitialLoad(SFSafariViewController controller, boolean didLoadSuccessfully)
This method is invoked when SFSafariViewController completes the loading of the URL that you pass to its initializer. It is not invoked for any subsequent page loads in the same SFSafariViewController instance.
didLoadSuccessfully - YES if loading completed successfully, NO if loading failed.default void safariViewControllerDidFinish(SFSafariViewController controller)
default NSArray<java.lang.String> safariViewControllerExcludedActivityTypesForURLTitle(SFSafariViewController controller, NSURL URL, java.lang.String title)
Called when the view controller is about to show a UIActivityViewController after the user taps the action button.
URL - the URL of the current web page.title - the title of the current web page.default void safariViewControllerInitialLoadDidRedirectToURL(SFSafariViewController controller, NSURL URL)
This method may be called even after -safariViewController:didCompleteInitialLoad: if the web page performs additional redirects without user interaction.
URL - The new URL to which the browser was redirected.default void safariViewControllerWillOpenInBrowser(SFSafariViewController controller)