PSPDFDownloadManagerDelegate

Objective-C

@protocol PSPDFDownloadManagerDelegate<NSObject>

@optional

/// If the delegate wants to handle authentication challenges.
- (void)downloadManager:(PSPDFDownloadManager *)downloadManager authenticationChallenge:(NSURLAuthenticationChallenge *)authenticationChallenge completionHandler:(void (^)(NSURLSessionAuthChallengeDisposition disposition, NSURLCredential *credential))completionHandler;

/// Informs the delegate that the state of the given object has changed.
///
/// @param downloadManager The download manager.
/// @param object The changed object.
- (void)downloadManager:(PSPDFDownloadManager *)downloadManager didChangeObject:(id<PSPDFRemoteContentObject>)object;

/// Informs the delegate that the reachability has changed.
///
/// @param downloadManager The download manager.
/// @param reachability The new reachability.
- (void)downloadManager:(PSPDFDownloadManager *)downloadManager reachabilityDidChange:(PSPDFReachability)reachability;

@end

Swift

protocol DownloadManagerDelegate : NSObjectProtocol

Undocumented