VLCNetworkImageView.h 988 B

123456789101112131415161718192021222324252627
  1. /*****************************************************************************
  2. * VLC for iOS
  3. *****************************************************************************
  4. * Copyright (c) 2015 VideoLAN. All rights reserved.
  5. * $Id$
  6. *
  7. * Authors: Tobias Conradi <videolan # tobias-conradi.de>
  8. *
  9. * Refer to the COPYING file of the official project for license.
  10. *****************************************************************************/
  11. #import <UIKit/UIKit.h>
  12. @interface VLCNetworkImageView : UIImageView
  13. + (NSCache *)sharedImageCache;
  14. + (void)setSharedImageCache:(NSCache *)sharedCache;
  15. @property (nonatomic) NSURLSessionDataTask *downloadTask;
  16. - (void)setImageWithURL:(NSURL *)url;
  17. - (void)cancelLoading;
  18. @property (nonatomic, readwrite) BOOL animateImageSetting;
  19. // if set the image view replaces the constraint on image uodates with a
  20. // constraint that has the same aspect ratio as the image
  21. @property (nonatomic) IBOutlet NSLayoutConstraint *aspectRatioConstraint;
  22. @end