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,360評論 25 708
  • 繼承于: NSObject 聲明處: SDWebImagePrefetcher.h 概述 預先在緩存中獲取一些UR...
    _阿南_閱讀 3,305評論 0 2
  • 1.自定義控件 a.繼承某個控件 b.重寫initWithFrame方法可以設置一些它的屬性 c.在layouts...
    圍繞的城閱讀 3,475評論 2 4
  • 轉載至:http://www.cnblogs.com/cvst/p/5822373.html Java Excep...
    小沙鷹168閱讀 1,912評論 0 3
  • 陽光熾熱而膠黏,詹姆斯坐在座位上不禁又看了看手表——四點五十。還有十分鐘就可以離開這該死的辦公室了。他揉了揉自己的...
    墨了然閱讀 620評論 0 50