-
- All Implemented Interfaces:
-
android.content.ComponentCallbacks,android.content.ComponentCallbacks2
public class MemoryPressureRouter implements ComponentCallbacks2
Translates and routes memory pressure events to the current catalyst instance.
-
-
Constructor Summary
Constructors Constructor Description MemoryPressureRouter(Context context)
-
Method Summary
Modifier and Type Method Description voiddestroy(Context context)voidaddMemoryPressureListener(MemoryPressureListener listener)Add a listener to be notified of memory pressure events. voidremoveMemoryPressureListener(MemoryPressureListener listener)Remove a listener previously added with addMemoryPressureListener. voidonTrimMemory(int level)voidonConfigurationChanged(Configuration newConfig)voidonLowMemory()-
Methods inherited from class android.content.ComponentCallbacks2
onTrimMemory -
Methods inherited from class android.content.ComponentCallbacks
onConfigurationChanged, onLowMemory -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
MemoryPressureRouter
MemoryPressureRouter(Context context)
-
-
Method Detail
-
addMemoryPressureListener
void addMemoryPressureListener(MemoryPressureListener listener)
Add a listener to be notified of memory pressure events.
-
removeMemoryPressureListener
void removeMemoryPressureListener(MemoryPressureListener listener)
Remove a listener previously added with addMemoryPressureListener.
-
onTrimMemory
void onTrimMemory(int level)
-
onConfigurationChanged
void onConfigurationChanged(Configuration newConfig)
-
onLowMemory
void onLowMemory()
-
-
-
-