mirror of
https://github.com/sparkle-project/Sparkle
synced 2026-11-24 04:38:16 +00:00
The rationale is that the downloader may be giving us an expected length for a block of data rather than the whole
29 lines
777 B
Objective-C
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
|