/***************************************************************************** * VLC for iOS ***************************************************************************** * Copyright (c) 2015 VideoLAN. All rights reserved. * $Id$ * * Authors: Tobias Conradi * * Refer to the COPYING file of the official project for license. *****************************************************************************/ #import @interface VLCNetworkImageView : UIImageView + (NSCache *)sharedImageCache; + (void)setSharedImageCache:(NSCache *)sharedCache; @property (nonatomic) NSURLSessionDataTask *downloadTask; - (void)setImageWithURL:(NSURL *)url; - (void)cancelLoading; @property (nonatomic, readwrite) BOOL animateImageSetting; // if set the image view replaces the constraint on image uodates with a // constraint that has the same aspect ratio as the image @property (nonatomic) IBOutlet NSLayoutConstraint *aspectRatioConstraint; @end