public class


extends Object
implements MemoryCache.CacheTrimStrategy
   ↳ com.facebook.imagepipeline.cache.BitmapMemoryCacheTrimStrategy

Class Overview

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.


Public Constructors
Public Methods
double getTrimRatio(MemoryTrimType trimType)
Inherited Methods
From class java.lang.Object
From interface com.facebook.imagepipeline.cache.MemoryCache.CacheTrimStrategy

Public Constructors

public BitmapMemoryCacheTrimStrategy ()

Public Methods

public double getTrimRatio (MemoryTrimType trimType)