Skip to main content

相册管理器

class AlbumManager

描述: 相册管理实现类

    class AlbumManager : IAlbumManager {

companion object {
/**
* 相册管理器对象
*/
fun getAlbumManager(): IAlbumManager
}


/**
* 注册媒体信息变更回调
*/
override fun registerMediaChangeInfoCallBack(mRtkCallBackReportInfo: AlbumCallback)

/**
* 取消注册媒体信息变更
*/
override fun unRegisterMediaChangeInfoCallBack(mAlbumCallback: AlbumCallback)


//获取多媒体集合
override fun getMediaFileList(
type: MediaTypeEnum,
storageType: StorageTypeEnum,
albumName: String?,
offset: Int,
count: Int,
order: OrderTypeEnum,
callback: CommonCallbacks.CompletionCallbackWithParam<AlbumResultBean>)

//获取多媒体文件夹集合
override fun getMediaFolderList(
storageType: StorageTypeEnum,
sortType: OrderTypeEnum,
callback: CommonCallbacks.CompletionCallbackWithParam<AlbumFolderResultBean>)


//删除某个多媒体文件
override fun deleteMediaFile(
indexId: Int,
callback: CommonCallbacks.CompletionCallback)

//删除多媒体文件夹
override fun deleteMediaFolder(
folder: String,
callback: CommonCallbacks.CompletionCallback)


//下载多媒体文件
override fun downloadMediaFile(
sourcePath:String,
desPath:String,
callback: CommonCallbacks.DownLoadCallbackWithProgress<Double>):BaseRequest


//下载多媒体文件
override fun downloadMediaFileNew(
sourcePath: String,
destPath: String,
callback: CommonCallbacks.DownLoadCallbackWithProgress<Double>,
): S3DownloadInterceptor

//取消下载
override fun cancelDownload(request: BaseRequest)
}