public class

BitmapMemoryCacheTrimStrategy

extends Object
implements MemoryCache.CacheTrimStrategy
java.lang.Object
   ↳ 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.

Summary

Public Constructors
BitmapMemoryCacheTrimStrategy()
Public Methods
double getTrimRatio(MemoryTrimType trimType)
[Expand]
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)