OnTrimMemoryProvider
public interface OnTrimMemoryProvider
ComponentActivity |
Base class for activities that enables composition of higher level components. |
AppCompatActivity |
Base class for activities that wish to use some of the newer platform features on older Android devices. |
BaseCarAppActivity |
Core logic for CarAppLibrary Activity interaction with a host. |
CarAppActivity |
The class representing a car app activity in the main display. |
FragmentActivity |
Base class for activities that want to use the support-based |
LauncherActivity |
This class handles providing the right launcher activity when running native applications and Car App Library applications. |
Interface for components that can dispatch calls from ComponentCallbacks2.onTrimMemory.
Summary
Public methods |
|
|---|---|
abstract void |
addOnTrimMemoryListener(@NonNull Consumer<@NonNull Integer> listener)Add a new listener that will get a callback associated with |
abstract void |
removeOnTrimMemoryListener(@NonNull Consumer<@NonNull Integer> listener)Remove a previously added listener. |
Public methods
addOnTrimMemoryListener
abstract void addOnTrimMemoryListener(@NonNull Consumer<@NonNull Integer> listener)
Add a new listener that will get a callback associated with ComponentCallbacks2.onTrimMemory with the int representing the level of trimming.
| Parameters | |
|---|---|
@NonNull Consumer<@NonNull Integer> listener |
The listener that should be called whenever |