public MvxImageCache(IMvxFileDownloadCache fileDownloadCache, int maxInMemoryFiles, int maxInMemoryBytes, bool disposeOnRemove) { _fileDownloadCache = fileDownloadCache; _maxInMemoryFiles = maxInMemoryFiles; _maxInMemoryBytes = maxInMemoryBytes; _disposeOnRemove = disposeOnRemove; }
private MvxImageCache <UIImage> CreateCache(IMvxFileDownloadCache fileDownloadCache) { var configuration = _configuration ?? MvxDownloadCacheConfiguration.Default; var fileCache = new MvxImageCache <UIImage>(fileDownloadCache, configuration.MaxInMemoryFiles, configuration.MaxInMemoryBytes, configuration.DisposeOnRemoveFromCache); return(fileCache); }
private MvxImageCache<Bitmap> CreateCache(IMvxFileDownloadCache fileDownloadCache) { var configuration = _configuration ?? MvxDownloadCacheConfiguration.Default; var fileCache = new MvxImageCache<Bitmap>(fileDownloadCache, configuration.MaxInMemoryFiles, configuration.MaxInMemoryBytes, configuration.DisposeOnRemoveFromCache); return fileCache; }
public MvxResizedImageCache( IMvxFileDownloadCache fileDownloadCache, int maxInMemoryFiles, int maxInMemoryBytes, bool disposeOnRemove) : base(fileDownloadCache, maxInMemoryFiles, maxInMemoryBytes, disposeOnRemove) { }
public BindableImageView(Context context, IAttributeSet attrs, int defStyleAttr, int defStyleRes) : base(context, attrs, defStyleAttr, defStyleRes) { _imageLoader = ImageLoader.Instance; _downloadCache = Mvx.Resolve<IMvxFileDownloadCache>(); }
public BindableImageView(Context context) : base(context) { _imageLoader = ImageLoader.Instance; _downloadCache = Mvx.Resolve<IMvxFileDownloadCache>(); }
public BindableImageView(IntPtr javaReference, JniHandleOwnership transfer) : base(javaReference, transfer) { _imageLoader = ImageLoader.Instance; _downloadCache = Mvx.Resolve<IMvxFileDownloadCache>(); }
public MvxImageCache(IMvxFileDownloadCache fileDownloadCache, int maxInMemoryFiles, int maxInMemoryBytes) { _fileDownloadCache = fileDownloadCache; _maxInMemoryFiles = maxInMemoryFiles; _maxInMemoryBytes = maxInMemoryBytes; }