Package 

Class BitmapMemoryCacheTrimStrategy

  • 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.

    • Method Summary

      Modifier and Type Method Description
      Double getTrimRatio(MemoryTrimType trimType)
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • BitmapMemoryCacheTrimStrategy

        BitmapMemoryCacheTrimStrategy()