Last active
January 3, 2017 21:11
-
-
Save petermolnar-dev/79e14528023dd06f852403e1fbe45723 to your computer and use it in GitHub Desktop.
PMODataHolder Protocol
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#import <Foundation/Foundation.h> | |
#import "PMODownloaderFromURL.h" | |
/** | |
Forward declaration of the used and referenced protocol | |
*/ | |
@protocol PMODownloaderFromURL; | |
@protocol PMODataHolder <NSObject> | |
/** | |
Our delegate, which will do the actual download for us. | |
*/ | |
@property (strong, nonatomic, nullable) id <PMODownloaderFromURL> delegate; | |
/** | |
Completion handler. Call with the downloada data as NSData when the download of the data completed. | |
@param data The downloaded data is raw NSData format. | |
*/ | |
- (void)didDownloadedData:(nullable NSData *) data; | |
@end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment