mirror of
https://github.com/faroukbmiled/RyukGram.git
synced 2026-08-10 21:20:25 +02:00
modded scinsta with additional features and fixes for recent instagram version
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
#import <UIKit/UIKit.h>
|
||||
#import <Foundation/Foundation.h>
|
||||
|
||||
@protocol SCIDownloadDelegateProtocol <NSObject>
|
||||
|
||||
// Methods
|
||||
- (void)downloadDidStart;
|
||||
- (void)downloadDidCancel;
|
||||
- (void)downloadDidProgress:(float)progress;
|
||||
- (void)downloadDidFinishWithError:(NSError *)error;
|
||||
- (void)downloadDidFinishWithFileURL:(NSURL *)fileURL;
|
||||
|
||||
@end
|
||||
|
||||
@interface SCIDownloadManager : NSObject <NSURLSessionDownloadDelegate>
|
||||
|
||||
// Properties
|
||||
@property (nonatomic, weak) id<SCIDownloadDelegateProtocol> delegate;
|
||||
@property (nonatomic, strong) NSURLSession *session;
|
||||
@property (nonatomic, strong) NSURLSessionDownloadTask *task;
|
||||
@property (nonatomic, strong) NSString *fileExtension;
|
||||
|
||||
// Methods
|
||||
- (instancetype)initWithDelegate:(id<SCIDownloadDelegateProtocol>)downloadDelegate;
|
||||
|
||||
- (void)downloadFileWithURL:(NSURL *)url fileExtension:(NSString *)fileExtension;
|
||||
|
||||
- (void)cancelDownload;
|
||||
|
||||
- (NSURL *)moveFileToCacheDir:(NSURL *)oldPath;
|
||||
|
||||
@end
|
||||
Reference in New Issue
Block a user