C# Класс FFImageLoading.Cache.ImageCache

Наследование: IImageCache
Показать файл Открыть проект

Открытые методы

Метод Описание
Add ( string key, ImageInformation imageInformation, ISelfDisposingBitmapDrawable bitmap ) : void
Add ( string key, ImageInformation imageInformation, WriteableBitmap bitmap ) : void
Clear ( ) : void
Get ( string key ) : ImageInformation>.Tuple
Get ( string key ) : ImageInformation>.Tuple
GetBitmapDrawableFromReusableSet ( Android.Graphics.BitmapFactory options ) : ISelfDisposingBitmapDrawable

Attempts to find a bitmap suitable for reuse based on the given dimensions. Note that any returned instance will have SetIsRetained(true) called on it to ensure that it does not release its resources prematurely as it is leaving cache management. This means you must call SetIsRetained(false) when you no longer need the instance.

GetBitmapSize ( Android.Graphics.Drawables.BitmapDrawable bmp ) : int
GetInfo ( string key ) : ImageInformation
Remove ( string key ) : void
RemoveSimilar ( string baseKey ) : void

Приватные методы

Метод Описание
CleanAbandonedItems ( ) : void
GetCacheSizeInPercent ( float percent ) : int

Gets the memory cache size based on a percentage of the max available VM memory.

GetMaxCacheSize ( int maxCacheSize ) : int
ImageCache ( int maxCacheSize, IMiniLogger logger, bool verboseLogging ) : Android.Graphics
ImageCache ( int maxCacheSize, IMiniLogger logger ) : FFImageLoading.Concurrency

Описание методов

Add() публичный Метод

public Add ( string key, ImageInformation imageInformation, ISelfDisposingBitmapDrawable bitmap ) : void
key string
imageInformation ImageInformation
bitmap ISelfDisposingBitmapDrawable
Результат void

Add() публичный Метод

public Add ( string key, ImageInformation imageInformation, WriteableBitmap bitmap ) : void
key string
imageInformation ImageInformation
bitmap WriteableBitmap
Результат void

Clear() публичный Метод

public Clear ( ) : void
Результат void

Get() публичный Метод

public Get ( string key ) : ImageInformation>.Tuple
key string
Результат ImageInformation>.Tuple

Get() публичный Метод

public Get ( string key ) : ImageInformation>.Tuple
key string
Результат ImageInformation>.Tuple

GetBitmapDrawableFromReusableSet() публичный Метод

Attempts to find a bitmap suitable for reuse based on the given dimensions. Note that any returned instance will have SetIsRetained(true) called on it to ensure that it does not release its resources prematurely as it is leaving cache management. This means you must call SetIsRetained(false) when you no longer need the instance.
public GetBitmapDrawableFromReusableSet ( Android.Graphics.BitmapFactory options ) : ISelfDisposingBitmapDrawable
options Android.Graphics.BitmapFactory Bitmap creation options.
Результат ISelfDisposingBitmapDrawable

GetBitmapSize() публичный статический Метод

public static GetBitmapSize ( Android.Graphics.Drawables.BitmapDrawable bmp ) : int
bmp Android.Graphics.Drawables.BitmapDrawable
Результат int

GetInfo() публичный Метод

public GetInfo ( string key ) : ImageInformation
key string
Результат ImageInformation

Remove() публичный Метод

public Remove ( string key ) : void
key string
Результат void

RemoveSimilar() публичный Метод

public RemoveSimilar ( string baseKey ) : void
baseKey string
Результат void