UNICORN - iOS
UIImageView+Haneke.h
1 //
2 // UIImageView+Haneke.h
3 // Haneke
4 //
5 // Created by Hermes Pique on 12/02/14.
6 // Copyright (c) 2014 Hermes Pique. All rights reserved.
7 //
8 // Licensed under the Apache License, Version 2.0 (the "License");
9 // you may not use this file except in compliance with the License.
10 // You may obtain a copy of the License at
11 //
12 // http://www.apache.org/licenses/LICENSE-2.0
13 //
14 // Unless required by applicable law or agreed to in writing, software
15 // distributed under the License is distributed on an "AS IS" BASIS,
16 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17 // See the License for the specific language governing permissions and
18 // limitations under the License.
19 //
20 
21 #import <UIKit/UIKit.h>
22 #import "HNKCache.h"
23 
25 
30 - (void)hnk_setImageFromFile:(NSString*)path;
31 
37 - (void)hnk_setImageFromFile:(NSString*)path placeholderImage:(UIImage*)placeholderImage;
38 
46 - (void)hnk_setImageFromFile:(NSString*)path success:(void (^)(UIImage *image))successBlock failure:(void (^)(NSError *error))failureBlock;
47 
59 - (void)hnk_setImageFromFile:(NSString*)path placeholderImage:(UIImage*)placeholderImage success:(void (^)(UIImage *image))successBlock failure:(void (^)(NSError *error))failureBlock;
60 
65 - (void)hnk_setImageFromURL:(NSURL*)url;
66 
72 - (void)hnk_setImageFromURL:(NSURL*)url placeholderImage:(UIImage*)placeholderImage;
73 
81 - (void)hnk_setImageFromURL:(NSURL*)url success:(void (^)(UIImage *image))successBlock failure:(void (^)(NSError *error))failureBlock;
82 
93 - (void)hnk_setImageFromURL:(NSURL*)url placeholderImage:(UIImage*)placeholderImage success:(void (^)(UIImage *image))successBlock failure:(void (^)(NSError *error))failureBlock;
94 
100 - (void)hnk_setImage:(UIImage*)image withKey:(NSString*)key;
101 
108 - (void)hnk_setImage:(UIImage*)image withKey:(NSString*)key placeholderImage:(UIImage*)placeholderImage;
109 
118 - (void)hnk_setImage:(UIImage*)image withKey:(NSString*)key success:(void (^)(UIImage *image))successBlock failure:(void (^)(NSError *error))failureBlock;
119 
131 - (void)hnk_setImage:(UIImage*)image withKey:(NSString*)key placeholderImage:(UIImage*)placeholderImage success:(void (^)(UIImage *image))successBlock failure:(void (^)(NSError *error))failureBlock;
132 
137 - (void)hnk_setImageFromEntity:(id<HNKCacheEntity>)entity;
138 
144 - (void)hnk_setImageFromEntity:(id<HNKCacheEntity>)entity placeholderImage:(UIImage*)placeholderImage;
145 
153 - (void)hnk_setImageFromEntity:(id<HNKCacheEntity>)entity success:(void (^)(UIImage *image))successBlock failure:(void (^)(NSError *error))failureBlock;
154 
165 - (void)hnk_setImageFromEntity:(id<HNKCacheEntity>)entity placeholderImage:(UIImage*)placeholderImage success:(void (^)(UIImage *image))successBlock failure:(void (^)(NSError *error))failureBlock;
166 
171 - (void)hnk_cancelImageRequest;
172 
178 @property (nonatomic, strong) HNKCacheFormat *hnk_cacheFormat;
179 
180 @end
181 
182 enum
183 {
184  HNKErrorImageFromURLMissingData = -400,
185 };
Definition: UIImageView+Haneke.h:24
Definition: HNKCache.h:135
void hnk_cancelImageRequest()
Definition: UIImageView+Haneke.m:279
Definition: HNKCache.h:176
HNKCacheFormat * hnk_cacheFormat
Definition: UIImageView+Haneke.h:178