PSPDFDownloadManagerDelegate

Undocumented

  • If the delegate wants to handle authentication challenges.

    Declaration

    Objective-C

    - (void)downloadManager:(nonnull PSPDFDownloadManager *)downloadManager
        authenticationChallenge:
            (nonnull NSURLAuthenticationChallenge *)authenticationChallenge
              completionHandler:
                  (nonnull void (^)(NSURLSessionAuthChallengeDisposition,
                                    NSURLCredential *_Nonnull))completionHandler;

    Swift

    optional func downloadManager(_ downloadManager: PSPDFDownloadManager, authenticationChallenge: URLAuthenticationChallenge, completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential) -> Void)
  • Informs the delegate that the state of the given object has changed. - parameter: downloadManager The download manager. - parameter: object The changed object.

    Declaration

    Objective-C

    - (void)downloadManager:(nonnull PSPDFDownloadManager *)downloadManager
            didChangeObject:(nonnull id<PSPDFRemoteContentObject>)object;

    Parameters

    downloadManager

    The download manager.

    object

    The changed object.

  • Informs the delegate that the reachability has changed. - parameter: downloadManager The download manager. - parameter: reachability The new reachability.

    Declaration

    Objective-C

    - (void)downloadManager:(nonnull PSPDFDownloadManager *)downloadManager
        reachabilityDidChange:(PSPDFReachability)reachability;

    Swift

    optional func downloadManager(_ downloadManager: PSPDFDownloadManager, reachabilityDidChange reachability: PSPDFReachability)

    Parameters

    downloadManager

    The download manager.

    reachability

    The new reachability.