SDWebImagePrefetchToken

@interface SDWebImagePrefetchToken : NSObject <SDWebImageOperation>

A token represents a list of URLs, can be used to cancel the download.

  • Cancel the current prefetching.

    Declaration

    Objective-C

    - (void)cancel;

    Swift

    func cancel()
  • list of URLs of current prefetching.

    Declaration

    Objective-C

    @property (readonly, copy, nonatomic, nullable) NSArray<NSURL *> *urls;

    Swift

    var urls: [URL]? { get }