Files
Sparkle/PersistentDownloader/SUPersistentDownloaderDelegate.h
T
Zorg 355d6eddbf Rely more on content length from appcast item than from downloader
The rationale is that the downloader may be giving us an expected length for a block of data rather than the whole
2016-05-29 14:25:21 -04:00

29 lines
777 B
Objective-C

//
// SUPersistentDownloaderDelegate.h
// Sparkle
//
// Created by Mayur Pawashe on 4/1/16.
// Copyright © 2016 Sparkle Project. All rights reserved.
//
#import <Foundation/Foundation.h>
NS_ASSUME_NONNULL_BEGIN
@protocol SUPersistentDownloaderDelegate <NSObject>
- (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