public class MiniThumbFile extends Object
Modifier and Type | Field and Description |
---|---|
static int |
BYTES_PER_MINTHUMB |
Constructor and Description |
---|
MiniThumbFile(Uri uri) |
Modifier and Type | Method and Description |
---|---|
void |
deactivate() |
long |
getMagic(long id) |
byte[] |
getMiniThumbFromFile(long id,
byte[] data)
Gallery app can use this method to retrieve mini-thumbnail.
|
static MiniThumbFile |
instance(Uri uri) |
static void |
reset()
We store different types of thumbnails in different files.
|
void |
saveMiniThumbToFile(byte[] data,
long id,
long magic) |
public static final int BYTES_PER_MINTHUMB
public MiniThumbFile(Uri uri)
public static void reset()
public static MiniThumbFile instance(Uri uri)
public void deactivate()
public long getMagic(long id)
public void saveMiniThumbToFile(byte[] data, long id, long magic) throws IOException
IOException
public byte[] getMiniThumbFromFile(long id, byte[] data)
id
- the ID of the image (same of full size image).data
- the buffer to store mini-thumbnail.