This repository was archived by the owner on Jan 16, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 2525
2626PFUI_ASSUME_NONNULL_BEGIN
2727
28+ typedef void (^PFImageViewImageResultBlock)(UIImage *PFUI_NULLABLE_S image, NSError *PFUI_NULLABLE_S error);
29+
2830@class BFTask;
2931@class PFFile;
3032
@@ -56,7 +58,7 @@ PFUI_ASSUME_NONNULL_BEGIN
5658
5759 @param completion the completion block.
5860 */
59- - (void )loadInBackground : (PFUI_NULLABLE void (^)(PFUI_NULLABLE_S UIImage *image, PFUI_NULLABLE_S NSError *error) )completion;
61+ - (void )loadInBackground : (PFUI_NULLABLE PFImageViewImageResultBlock )completion ;
6062
6163/* !
6264 @abstract Initiate downloading of the remote image.
@@ -67,7 +69,7 @@ PFUI_ASSUME_NONNULL_BEGIN
6769 @param progressBlock called with the download progress as the image is being downloaded.
6870 Will be called with a value of 100 before the completion block is called.
6971 */
70- - (void )loadInBackground : (PFUI_NULLABLE void (^)(PFUI_NULLABLE_S UIImage *image, PFUI_NULLABLE_S NSError *error) )completion
72+ - (void )loadInBackground : (PFUI_NULLABLE PFImageViewImageResultBlock )completion
7173 progressBlock : (PFUI_NULLABLE void (^)(int percentDone))progressBlock;
7274
7375@end
You can’t perform that action at this time.
0 commit comments