Ejemplo n.º 1
0
 public MvxImageCache(IMvxFileDownloadCache fileDownloadCache, int maxInMemoryFiles, int maxInMemoryBytes, bool disposeOnRemove)
 {
     _fileDownloadCache = fileDownloadCache;
     _maxInMemoryFiles  = maxInMemoryFiles;
     _maxInMemoryBytes  = maxInMemoryBytes;
     _disposeOnRemove   = disposeOnRemove;
 }
Ejemplo n.º 2
0
        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);
        }
Ejemplo n.º 3
0
        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;
        }
Ejemplo n.º 4
0
 public MvxResizedImageCache(
     IMvxFileDownloadCache fileDownloadCache,
     int maxInMemoryFiles,
     int maxInMemoryBytes,
     bool disposeOnRemove)
     : base(fileDownloadCache, maxInMemoryFiles, maxInMemoryBytes, disposeOnRemove)
 {
 }
Ejemplo n.º 5
0
 public BindableImageView(Context context, IAttributeSet attrs, int defStyleAttr, int defStyleRes) : base(context, attrs, defStyleAttr, defStyleRes)
 {
     _imageLoader = ImageLoader.Instance;
     _downloadCache = Mvx.Resolve<IMvxFileDownloadCache>();
 }
Ejemplo n.º 6
0
 public BindableImageView(Context context) : base(context)
 {
     _imageLoader = ImageLoader.Instance;
     _downloadCache = Mvx.Resolve<IMvxFileDownloadCache>();
 }
Ejemplo n.º 7
0
 public BindableImageView(IntPtr javaReference, JniHandleOwnership transfer) : base(javaReference, transfer)
 {   
     _imageLoader = ImageLoader.Instance;
     _downloadCache = Mvx.Resolve<IMvxFileDownloadCache>();
 }
Ejemplo n.º 8
0
 public MvxImageCache(IMvxFileDownloadCache fileDownloadCache, int maxInMemoryFiles, int maxInMemoryBytes)
 {
     _fileDownloadCache = fileDownloadCache;
     _maxInMemoryFiles  = maxInMemoryFiles;
     _maxInMemoryBytes  = maxInMemoryBytes;
 }