mirror of
https://github.com/sparkle-project/Sparkle
synced 2026-11-22 04:30:47 +00:00
27 lines
824 B
Objective-C
27 lines
824 B
Objective-C
//
|
|
// SPUDownloaderProtocol.h
|
|
// PersistentDownloader
|
|
//
|
|
// Created by Mayur Pawashe on 4/1/16.
|
|
// Copyright © 2016 Sparkle Project. All rights reserved.
|
|
//
|
|
|
|
#import <Foundation/Foundation.h>
|
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
|
|
// 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.
|
|
@protocol SPUDownloaderProtocol
|
|
|
|
- (void)startPersistentDownloadWithRequest:(NSURLRequest *)request bundleIdentifier:(NSString *)bundleIdentifier desiredFilename:(NSString *)desiredFilename;
|
|
|
|
- (void)startTemporaryDownloadWithRequest:(NSURLRequest *)request;
|
|
|
|
- (void)removeDownloadDirectoryWithDownloadToken:(NSString *)downloadToken bundleIdentifier:(NSString *)bundleIdentifier;
|
|
|
|
- (void)cleanup:(void (^)(void))completionHandler;
|
|
|
|
@end
|
|
|
|
NS_ASSUME_NONNULL_END
|