C# 클래스 FFImageLoading.Cache.ImageCache

상속: IImageCache
파일 보기 프로젝트 열기: daniel-luberda/FFImageLoading

공개 메소드들

메소드 설명
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