SDWebImageOperation.h 660 B

12345678910111213141516171819202122232425262728
  1. /*
  2. * This file is part of the SDWebImage package.
  3. * (c) Olivier Poitrey <rs@dailymotion.com>
  4. *
  5. * For the full copyright and license information, please view the LICENSE
  6. * file that was distributed with this source code.
  7. */
  8. #import <Foundation/Foundation.h>
  9. /// A protocol represents cancelable operation.
  10. @protocol SDWebImageOperation <NSObject>
  11. /// Cancel the operation
  12. - (void)cancel;
  13. @optional
  14. /// Whether the operation has been cancelled.
  15. @property (nonatomic, assign, readonly, getter=isCancelled) BOOL cancelled;
  16. @end
  17. /// NSOperation conform to `SDWebImageOperation`.
  18. @interface NSOperation (SDWebImageOperation) <SDWebImageOperation>
  19. @end