Skip to content

Instantly share code, notes, and snippets.

@petermolnar-dev
Last active January 3, 2017 21:11
Show Gist options
  • Save petermolnar-dev/79e14528023dd06f852403e1fbe45723 to your computer and use it in GitHub Desktop.
Save petermolnar-dev/79e14528023dd06f852403e1fbe45723 to your computer and use it in GitHub Desktop.
PMODataHolder Protocol
#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