2 // SPUDownloaderProtocol.h
3 // PersistentDownloader
5 // Created by Mayur Pawashe on 4/1/16.
6 // Copyright © 2016 Sparkle Project. All rights reserved.
9 #if __has_feature(modules)
12 #import <Foundation/Foundation.h>
15 NS_ASSUME_NONNULL_BEGIN
19 // The protocol that this service will vend as its API. This header file will also need to be visible to the process hosting the service.
20 @protocol SPUDownloaderProtocol
22 - (void)startPersistentDownloadWithRequest
:(SPUURLRequest
*)request bundleIdentifier
:(NSString
*)bundleIdentifier desiredFilename
:(NSString
*)desiredFilename
;
24 - (void)startTemporaryDownloadWithRequest
:(SPUURLRequest
*)request
;
26 - (void)downloadDidFinish
;