Back to Fresco

BitmapMemoryCacheTrimStrategy

docs/javadoc/reference/com/facebook/imagepipeline/cache/BitmapMemoryCacheTrimStrategy.html

3.6.014.9 KB
Original Source

Fresco

|

|

Packages | Classes

Interfaces

Classes

Packages | Classes

Summary: Ctors | Methods | Inherited Methods | [Expand All]

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
Public Methods
double

| [Expand] Inherited Methods | | --- | | From class java.lang.Object

| Object | clone() | | boolean | equals(Object arg0) | | void | finalize() | | final Class<?> | getClass() | | int | hashCode() | | final void | notify() | | final void | notifyAll() | | String | toString() | | final void | wait(long arg0, int arg1) | | final void | wait(long arg0) | | final void | wait() |

| | From interface com.facebook.imagepipeline.cache.MemoryCache.CacheTrimStrategy

| abstract double | getTrimRatio(MemoryTrimType trimType) |

|

Public Constructors

public BitmapMemoryCacheTrimStrategy()

Public Methods

public double getTrimRatio(MemoryTrimType trimType)

+Generated by Doclava. +