Skip to main content

AlbumManager

class AlbumManager

Description: Album management implementation class

    class AlbumManager : IAlbumManager {

companion object {
/**
* Album Manager Object
*/
fun getAlbumManager(): IAlbumManager
}


/**
* Registration media information change callback
*/
override fun registerMediaChangeInfoCallBack(mRtkCallBackReportInfo: AlbumCallback)

/**
* Cancel registration and change media information
*/
override fun unRegisterMediaChangeInfoCallBack(mAlbumCallback: AlbumCallback)


//Get multimedia collection
override fun getMediaFileList(
type: MediaTypeEnum,
storageType: StorageTypeEnum,
albumName: String?,
offset: Int,
count: Int,
order: OrderTypeEnum,
callback: CommonCallbacks.CompletionCallbackWithParam<AlbumResultBean>)

//Get multimedia folder collection
override fun getMediaFolderList(
storageType: StorageTypeEnum,
sortType: OrderTypeEnum,
callback: CommonCallbacks.CompletionCallbackWithParam<AlbumFolderResultBean>)


//Delete a multimedia file
override fun deleteMediaFile(
indexId: Int,
callback: CommonCallbacks.CompletionCallback)

//Delete multimedia folder
override fun deleteMediaFolder(
folder: String,
callback: CommonCallbacks.CompletionCallback)


//Download multimedia files
override fun downloadMediaFile(
sourcePath:String,
desPath:String,
callback: CommonCallbacks.DownLoadCallbackWithProgress<Double>):BaseRequest


//Download multimedia files
override fun downloadMediaFileNew(
sourcePath: String,
destPath: String,
callback: CommonCallbacks.DownLoadCallbackWithProgress<Double>,
): S3DownloadInterceptor

//Cancel Download
override fun cancelDownload(request: BaseRequest)
}