PSPDFDownloadManagerDelegate
Objective-C
@protocol PSPDFDownloadManagerDelegate <NSObject>
Swift
protocol DownloadManagerDelegate : NSObjectProtocol
Notifies of download related events.
-
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: DownloadManager, authenticationChallenge: URLAuthenticationChallenge) async -> (URLSession.AuthChallengeDisposition, URLCredential)
-
Informs the delegate that the state of the given object has changed.
Declaration
Objective-C
- (void)downloadManager:(nonnull PSPDFDownloadManager *)downloadManager didChangeObject:(nonnull id<PSPDFRemoteContentObject>)object;
Swift
optional func downloadManager(_ downloadManager: DownloadManager, didChange object: RemoteContentObject)
Parameters
downloadManager
The download manager.
object
The changed object.
-
Informs the delegate that the reachability has changed.
Declaration
Objective-C
- (void)downloadManager:(nonnull PSPDFDownloadManager *)downloadManager reachabilityDidChange:(PSPDFReachability)reachability;
Swift
optional func downloadManager(_ downloadManager: DownloadManager, reachabilityDidChange reachability: ReachabilityStatus)
Parameters
downloadManager
The download manager.
reachability
The new reachability.