PSPDFCommonWebView

@protocol PSPDFCommonWebView <NSObject>

Protocol to abstract away the API we use on either UIWebView or WKWebView, and which is supported by both classes.

  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic, readonly, getter=isLoading) BOOL loading

    Swift

    var isLoading: Bool { get }
  • URL

    Undocumented

    Declaration

    Objective-C

    @property (nonatomic, readonly, nullable) NSURL *URL

    Swift

    var url: URL? { get }
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic, readonly) BOOL canGoBack

    Swift

    var canGoBack: Bool { get }
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic, readonly) BOOL canGoForward

    Swift

    var canGoForward: Bool { get }
  • Undocumented

    Declaration

    Objective-C

    - (void)loadRequest:(NSURLRequest *)request;

    Swift

    func load(_ request: URLRequest)
  • Undocumented

    Declaration

    Objective-C

    - (void)stopLoading;

    Swift

    func stopLoading()
  • Undocumented

    Declaration

    Objective-C

    - (void)goBack;

    Swift

    func goBack()
  • Undocumented

    Declaration

    Objective-C

    - (void)goForward;

    Swift

    func goForward()
  • Undocumented

    Declaration

    Objective-C

    - (void)reload;

    Swift

    func reload()