// // SUPersistentDownloaderDelegate.h // Sparkle // // Created by Mayur Pawashe on 4/1/16. // Copyright © 2016 Sparkle Project. All rights reserved. // #import NS_ASSUME_NONNULL_BEGIN @protocol SUPersistentDownloaderDelegate - (void)downloaderDidSetDestinationName:(NSString *)destinationName temporaryDirectory:(NSString *)temporaryDirectory; // Under rare cases, this may be called more than once, in which case the current progress should be reset back to 0 - (void)downloaderDidReceiveExpectedContentLength:(int64_t)expectedContentLength; - (void)downloaderDidReceiveDataOfLength:(NSUInteger)length; - (void)downloaderDidFinishDownloading; - (void)downloaderDidFailWithError:(NSError *)error; @end NS_ASSUME_NONNULL_END