-
- All Implemented Interfaces:
public enum ParcelableMemoryCacheInternal use only.
This singleton cache keeps references to byte arrays and Bitmaps to be preserved between parceling and unparceling.
This solution is needed because it is not possible to pass large byte arrays and Bitmaps via Intents.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classParcelableMemoryCache.TokenOpaque tokenId type to identify a document.
-
Enum Constant Summary
Enum Constants Enum Constant Description INSTANCE
-
Method Summary
-
-
Method Detail
-
getByteArray
Array<byte> getByteArray(@NonNull() ParcelableMemoryCache.Token token)
-
storeByteArray
@NonNull() ParcelableMemoryCache.Token storeByteArray(@NonNull() Array<byte> documentJpeg)
-
storeByteArray
@NonNull() ParcelableMemoryCache.Token storeByteArray(@NonNull() Array<byte> documentJpeg, @NonNull() String tag)
-
removeByteArray
void removeByteArray(@NonNull() ParcelableMemoryCache.Token token)
-
removeEntriesWithTag
void removeEntriesWithTag(@NonNull() String tag)
-
getBitmap
@Nullable() Bitmap getBitmap(@NonNull() ParcelableMemoryCache.Token token)
-
storeBitmap
@NonNull() ParcelableMemoryCache.Token storeBitmap(@Nullable() Bitmap documentBitmap)
-
storeBitmap
@NonNull() ParcelableMemoryCache.Token storeBitmap(@Nullable() Bitmap documentBitmap, @NonNull() String tag)
-
removeBitmap
void removeBitmap(@NonNull() ParcelableMemoryCache.Token token)
-
getInstance
@NonNull() static ParcelableMemoryCache getInstance()
-
values
static Array<ParcelableMemoryCache> values()
Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants.
-
valueOf
static ParcelableMemoryCache valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
-
-
-
-