com.facebook.common.memory.MemoryTrimmable Java Examples
The following examples show how to use
com.facebook.common.memory.MemoryTrimmable.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: MemoryTrimmer.java From react-native-image-filter-kit with MIT License | 4 votes |
@Override public void registerMemoryTrimmable(final MemoryTrimmable trimmable) { mTrimmables.add(trimmable); }
Example #2
Source File: MemoryTrimmer.java From react-native-image-filter-kit with MIT License | 4 votes |
@Override public void unregisterMemoryTrimmable(final MemoryTrimmable trimmable) { mTrimmables.remove(trimmable); }
Example #3
Source File: MemoryTrimmer.java From react-native-image-filter-kit with MIT License | 4 votes |
synchronized void trim() { for (MemoryTrimmable trimmable : mTrimmables) { trimmable.trim(MemoryTrimType.OnCloseToDalvikHeapLimit); } }