public static enum BitmapLruCache.RecyclePolicy extends Enum<BitmapLruCache.RecyclePolicy>
Bitmap.recycle() is automatically
called, when it is no longer being used. To set this, use the Builder.setRecyclePolicy() method.| Enum Constant and Description |
|---|
ALWAYS
The Bitmap is always recycled when no longer being used.
|
DISABLED
The Bitmap is never recycled automatically.
|
PRE_HONEYCOMB_ONLY
The Bitmap is only automatically recycled if running on a device API v10 or earlier.
|
| Modifier and Type | Method and Description |
|---|---|
static BitmapLruCache.RecyclePolicy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static BitmapLruCache.RecyclePolicy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BitmapLruCache.RecyclePolicy DISABLED
public static final BitmapLruCache.RecyclePolicy PRE_HONEYCOMB_ONLY
public static final BitmapLruCache.RecyclePolicy ALWAYS
public static BitmapLruCache.RecyclePolicy[] values()
for (BitmapLruCache.RecyclePolicy c : BitmapLruCache.RecyclePolicy.values()) System.out.println(c);
public static BitmapLruCache.RecyclePolicy valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant
with the specified nameNullPointerException - if the argument is nullCopyright © 2013. All Rights Reserved.