public class LocalAlbum extends MediaSet
MediaSet.ItemConsumer, MediaSet.SyncListenerINDEX_NOT_FOUND, MEDIAITEM_BATCH_FETCH_COUNT, SYNC_RESULT_CANCELLED, SYNC_RESULT_ERROR, SYNC_RESULT_SUCCESSCACHE_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| Constructor and Description |
|---|
LocalAlbum(Path path,
MediaDataContext application,
int bucketId,
boolean isImage) |
LocalAlbum(Path path,
MediaDataContext application,
int bucketId,
boolean isImage,
java.lang.String name) |
| Modifier and Type | Method and Description |
|---|---|
void |
delete() |
android.net.Uri |
getContentUri() |
static android.database.Cursor |
getItemCursor(android.content.ContentResolver resolver,
android.net.Uri uri,
java.lang.String[] projection,
int id) |
static java.lang.String |
getLocalizedName(android.content.res.Resources res,
int bucketId,
java.lang.String name) |
java.util.ArrayList<MediaItem> |
getMediaItem(int start,
int count) |
static MediaItem[] |
getMediaItemById(MediaDataContext application,
boolean isImage,
java.util.ArrayList<java.lang.Integer> ids) |
int |
getMediaItemCount() |
java.lang.String |
getName() |
static java.lang.String |
getRelativePath(int bucketId) |
int |
getSupportedOperations() |
boolean |
isCameraRoll() |
boolean |
isLeafAlbum() |
long |
reload() |
addContentListener, enumerateMediaItems, enumerateMediaItems, enumerateTotalMediaItems, enumerateTotalMediaItems, getCoverMediaItem, getDetails, getIndexOf, getIndexOfItem, getSubMediaSet, getSubMediaSetCount, getTotalMediaItemCount, isLoading, notifyContentChanged, removeContentListener, requestSync, requestSyncOnMultipleSetscache, getCacheFlag, getCacheSize, getCacheStatus, getDataVersion, getMediaType, getPath, getPlayUri, getTypeFromString, getTypeString, Import, nextVersionNumber, rotatepublic LocalAlbum(Path path, MediaDataContext application, int bucketId, boolean isImage, java.lang.String name)
public LocalAlbum(Path path, MediaDataContext application, int bucketId, boolean isImage)
public boolean isCameraRoll()
isCameraRoll in class MediaSetpublic android.net.Uri getContentUri()
getContentUri in class MediaObjectpublic java.util.ArrayList<MediaItem> getMediaItem(int start, int count)
getMediaItem in class MediaSetpublic static MediaItem[] getMediaItemById(MediaDataContext application, boolean isImage, java.util.ArrayList<java.lang.Integer> ids)
public static android.database.Cursor getItemCursor(android.content.ContentResolver resolver,
android.net.Uri uri,
java.lang.String[] projection,
int id)
public int getMediaItemCount()
getMediaItemCount in class MediaSetpublic int getSupportedOperations()
getSupportedOperations in class MediaObjectpublic void delete()
delete in class MediaObjectpublic boolean isLeafAlbum()
isLeafAlbum in class MediaSetpublic static java.lang.String getLocalizedName(android.content.res.Resources res,
int bucketId,
java.lang.String name)
public static java.lang.String getRelativePath(int bucketId)