PINAlternateRepresentationProvider.h 790 B

1234567891011121314151617181920212223242526
  1. //
  2. // PINAlternateRepresentationProvider.h
  3. // Pods
  4. //
  5. // Created by Garrett Moon on 3/17/16.
  6. //
  7. //
  8. #import <Foundation/Foundation.h>
  9. #import "PINRemoteImageManager.h"
  10. @protocol PINRemoteImageManagerAlternateRepresentationProvider <NSObject>
  11. @required
  12. /**
  13. @discussion This method will be called with data off the wire or stored in the cache. Return an object to have it returned as the alternativeRepresentation object in the PINRemoteImageManagerResult. @warning this method can be called on the main thread, be careful of doing expensive work.
  14. */
  15. - (id)alternateRepresentationWithData:(NSData *)data options:(PINRemoteImageManagerDownloadOptions)options;
  16. @end
  17. @interface PINAlternateRepresentationProvider : NSObject <PINRemoteImageManagerAlternateRepresentationProvider>
  18. @end