PSPDFWebViewControllerDelegate

Objective-C

@protocol PSPDFWebViewControllerDelegate <PSPDFExternalURLHandler>

Swift

protocol WebViewControllerDelegate : ExternalURLHandler

Delegate for the PSPDFWebViewController to customize URL handling.

  • Called when the web controller did start loading.

    Declaration

    Objective-C

    - (void)webViewControllerDidStartLoad:
        (nonnull PSPDFWebViewController *)controller;

    Swift

    optional func webViewControllerDidStartLoad(_ controller: WebViewController)
  • Called when the web controller did finish loading.

    Declaration

    Objective-C

    - (void)webViewControllerDidFinishLoad:
        (nonnull PSPDFWebViewController *)controller;

    Swift

    optional func webViewControllerDidFinishLoad(_ controller: WebViewController)
  • Called when the web controller did fail to load.

    Declaration

    Objective-C

    - (void)webViewController:(nonnull PSPDFWebViewController *)controller
         didFailLoadWithError:(nonnull NSError *)error;

    Swift

    optional func webViewController(_ controller: WebViewController, didFailLoadWithError error: Error)