public final enum

MemoryTrimType

extends Enum<E extends Enum<E>>
java.lang.Object
   ↳ java.lang.Enum<E extends java.lang.Enum<E>>
     ↳ com.facebook.common.memory.MemoryTrimType

Class Overview

Types of memory trim.

Each type of trim will provide a suggested trim ratio.

A MemoryTrimmableRegistry implementation sends out memory trim events with this type.

Summary

Enum Values
MemoryTrimType  OnAppBackgrounded  This app is moving into the background, usually because the user navigated to another app. 
MemoryTrimType  OnCloseToDalvikHeapLimit  The application is approaching the device-specific Java heap limit. 
MemoryTrimType  OnSystemLowMemoryWhileAppInBackground  The system as a whole is running out of memory, and this application is in the background. 
MemoryTrimType  OnSystemLowMemoryWhileAppInForeground  The system as a whole is running out of memory, and this application is in the foreground. 
Public Methods
double getSuggestedTrimRatio()
Get the recommended percentage by which to trim the cache on receiving this event.
static MemoryTrimType valueOf(String name)
final static MemoryTrimType[] values()
[Expand]
Inherited Methods
From class java.lang.Enum
From class java.lang.Object
From interface java.lang.Comparable

Enum Values

public static final MemoryTrimType OnAppBackgrounded

This app is moving into the background, usually because the user navigated to another app.

public static final MemoryTrimType OnCloseToDalvikHeapLimit

The application is approaching the device-specific Java heap limit.

public static final MemoryTrimType OnSystemLowMemoryWhileAppInBackground

The system as a whole is running out of memory, and this application is in the background.

public static final MemoryTrimType OnSystemLowMemoryWhileAppInForeground

The system as a whole is running out of memory, and this application is in the foreground.

Public Methods

public double getSuggestedTrimRatio ()

Get the recommended percentage by which to trim the cache on receiving this event.

public static MemoryTrimType valueOf (String name)

public static final MemoryTrimType[] values ()