SDWeakProxy.h 574 B

1234567891011121314151617181920
  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. #import "SDWebImageCompat.h"
  10. /// A weak proxy which forward all the message to the target
  11. @interface SDWeakProxy : NSProxy
  12. @property (nonatomic, weak, readonly, nullable) id target;
  13. - (nonnull instancetype)initWithTarget:(nonnull id)target;
  14. + (nonnull instancetype)proxyWithTarget:(nonnull id)target;
  15. @end