-
- All Implemented Interfaces:
-
com.facebook.imagepipeline.cache.MemoryCache.CacheTrimStrategy
public final class BitmapMemoryCacheTrimStrategy implements MemoryCache.CacheTrimStrategy
CountingMemoryCache eviction strategy appropriate for bitmap caches.
If run on KitKat or below, then this TrimStrategy behaves exactly as NativeMemoryCacheTrimStrategy. If run on Lollipop, then BitmapMemoryCacheTrimStrategy will trim cache in one additional case: when OnCloseToDalvikHeapLimit trim type is received, cache's eviction queue will be trimmed according to OnCloseToDalvikHeapLimit's suggested trim ratio.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classBitmapMemoryCacheTrimStrategy.Companion
-
Constructor Summary
Constructors Constructor Description BitmapMemoryCacheTrimStrategy()
-
Method Summary
Modifier and Type Method Description DoublegetTrimRatio(MemoryTrimType trimType)-
-
Method Detail
-
getTrimRatio
Double getTrimRatio(MemoryTrimType trimType)
-
-
-
-