SDWebImagePrefetcherDelegate协议说明


遵循于: NSObject


声明处: SDWebImageManager.h


任务

  • - imagePrefetcher:didPrefetchURL:finishedCount:totalCount:
  • - imagePrefetcher:didFinishWithTotalCount:skippedCount:

实例方法

imagePrefetcher:didFinishWithTotalCount:skippedCount:

- (void)imagePrefetcher:(nonnull SDWebImagePrefetcher *)imagePrefetcher didFinishWithTotalCount:(NSUInteger)totalCount skippedCount:(NSUInteger)skippedCount

讨论

当所有图片已经预加载时调用。

参数

imagePrefetcher

当前图片的预加载。

totalCount

需要预加载的所有图片的总数。(无论成功与否)

skippedCount

被忽略的图片的总数。

声明处

SDWebImagePrefetcher.h

imagePrefetcher:didPrefetcherURL:finishedCount:totalCount:

- (void)imagePrefetcher:(nonnull SDWebImagePrefetcher *)imagePrefetcher didPrefetchURL:(nullable NSURL *)imageURL finishedCount:(NSUInteger)finishedCount totalCount:(NSUInteger)totalCount

讨论

当一张图片被预加载时调用。

参数

imagePrefetcher

当前图片的预加载。

imageURL

被预加载的图片url。

finishedCount

已经预加载的图片总数。(成功或者失败都算)

totalCount

准备预加载的图片总数。

声明处

SDWebImagePrefetcher.h

// END 写代码能够写到几岁呢。35岁,40岁,还是写到老。 怎么努力,很是紧张。

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容

  • Android 自定义View的各种姿势1 Activity的显示之ViewRootImpl详解 Activity...
    passiontim阅读 173,204评论 25 708
  • 继承于: NSObject 声明处: SDWebImagePrefetcher.h 概述 预先在缓存中获取一些UR...
    _阿南_阅读 3,305评论 0 2
  • 1.自定义控件 a.继承某个控件 b.重写initWithFrame方法可以设置一些它的属性 c.在layouts...
    圍繞的城阅读 3,463评论 2 4
  • 转载至:http://www.cnblogs.com/cvst/p/5822373.html Java Excep...
    小沙鹰168阅读 1,911评论 0 3
  • 阳光炽热而胶黏,詹姆斯坐在座位上不禁又看了看手表——四点五十。还有十分钟就可以离开这该死的办公室了。他揉了揉自己的...
    墨了然阅读 620评论 0 50