public abstract class MediaSet extends MediaObject
| Modifier and Type | Class and Description |
|---|---|
static interface |
MediaSet.ItemConsumer |
static interface |
MediaSet.SyncListener
Listener to be used with requestSync(SyncListener).
|
| Modifier and Type | Field and Description |
|---|---|
static int |
INDEX_NOT_FOUND |
static int |
MEDIAITEM_BATCH_FETCH_COUNT |
static int |
SYNC_RESULT_CANCELLED |
static int |
SYNC_RESULT_ERROR |
static int |
SYNC_RESULT_SUCCESS |
CACHE_FLAG_FULL, CACHE_FLAG_NO, CACHE_FLAG_SCREENNAIL, CACHE_STATUS_CACHED_FULL, CACHE_STATUS_CACHED_SCREENNAIL, CACHE_STATUS_CACHING, CACHE_STATUS_NOT_CACHED, INVALID_DATA_VERSION, mDataVersion, MEDIA_TYPE_ALL, MEDIA_TYPE_ALL_STRING, MEDIA_TYPE_IMAGE, MEDIA_TYPE_IMAGE_STRING, MEDIA_TYPE_UNKNOWN, MEDIA_TYPE_VIDEO, MEDIA_TYPE_VIDEO_STRING, mPath, SUPPORT_ALL, SUPPORT_CACHE, SUPPORT_CROP, SUPPORT_DELETE, SUPPORT_EDIT, SUPPORT_FULL_IMAGE, SUPPORT_IMPORT, SUPPORT_INFO, SUPPORT_PLAY, SUPPORT_ROTATE, SUPPORT_SETAS, SUPPORT_SHARE, SUPPORT_SHOW_ON_MAP| Modifier and Type | Method and Description |
|---|---|
void |
addContentListener(ContentListener listener) |
void |
enumerateMediaItems(MediaSet.ItemConsumer consumer) |
protected int |
enumerateMediaItems(MediaSet.ItemConsumer consumer,
int startIndex) |
void |
enumerateTotalMediaItems(MediaSet.ItemConsumer consumer) |
protected int |
enumerateTotalMediaItems(MediaSet.ItemConsumer consumer,
int startIndex) |
MediaItem |
getCoverMediaItem() |
MediaDetails |
getDetails() |
protected int |
getIndexOf(Path path,
java.util.ArrayList<MediaItem> list) |
int |
getIndexOfItem(Path path,
int hint) |
java.util.ArrayList<MediaItem> |
getMediaItem(int start,
int count) |
int |
getMediaItemCount() |
abstract java.lang.String |
getName() |
MediaSet |
getSubMediaSet(int index) |
int |
getSubMediaSetCount() |
int |
getTotalMediaItemCount() |
boolean |
isCameraRoll() |
boolean |
isLeafAlbum() |
boolean |
isLoading()
Method
reload() may process the loading task in background, this method tells
its client whether the loading is still in process or not. |
void |
notifyContentChanged() |
abstract long |
reload() |
void |
removeContentListener(ContentListener listener) |
Future<java.lang.Integer> |
requestSync(MediaSet.SyncListener listener)
Requests sync on this MediaSet.
|
protected Future<java.lang.Integer> |
requestSyncOnMultipleSets(MediaSet[] sets,
MediaSet.SyncListener listener) |
cache, delete, getCacheFlag, getCacheSize, getCacheStatus, getContentUri, getDataVersion, getMediaType, getPath, getPlayUri, getSupportedOperations, getTypeFromString, getTypeString, Import, nextVersionNumber, rotatepublic static final int MEDIAITEM_BATCH_FETCH_COUNT
public static final int INDEX_NOT_FOUND
public static final int SYNC_RESULT_SUCCESS
public static final int SYNC_RESULT_CANCELLED
public static final int SYNC_RESULT_ERROR
public MediaSet(Path path, long version)
public int getMediaItemCount()
public java.util.ArrayList<MediaItem> getMediaItem(int start, int count)
public MediaItem getCoverMediaItem()
public int getSubMediaSetCount()
public MediaSet getSubMediaSet(int index)
public boolean isLeafAlbum()
public boolean isCameraRoll()
public boolean isLoading()
reload() may process the loading task in background, this method tells
its client whether the loading is still in process or not.public int getTotalMediaItemCount()
public int getIndexOfItem(Path path, int hint)
public abstract java.lang.String getName()
public void addContentListener(ContentListener listener)
public void removeContentListener(ContentListener listener)
public void notifyContentChanged()
public abstract long reload()
public MediaDetails getDetails()
getDetails in class MediaObjectpublic void enumerateMediaItems(MediaSet.ItemConsumer consumer)
public void enumerateTotalMediaItems(MediaSet.ItemConsumer consumer)
protected int enumerateMediaItems(MediaSet.ItemConsumer consumer, int startIndex)
protected int enumerateTotalMediaItems(MediaSet.ItemConsumer consumer, int startIndex)
public Future<java.lang.Integer> requestSync(MediaSet.SyncListener listener)
protected Future<java.lang.Integer> requestSyncOnMultipleSets(MediaSet[] sets, MediaSet.SyncListener listener)