Interface KiiDownloadRTransferManager<T1 extends KiiDownloadRTransferManagerCallback<T2,T1>,T2 extends KiiDownloadRTransferManager<T1,T2>>
-
- All Known Implementing Classes:
KiiRTransferManager
public interface KiiDownloadRTransferManager<T1 extends KiiDownloadRTransferManagerCallback<T2,T1>,T2 extends KiiDownloadRTransferManager<T1,T2>>An interface to manage status of download transfer.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.List<KiiDownloader>listDownloadEntries(android.content.Context context)Lists existing download entries.voidlistDownloadEntries(android.content.Context context, T1 callback)Asynchronous call oflistDownloadEntries(Context)
NOTE: This method should be executed in UI thread.
-
-
-
Method Detail
-
listDownloadEntries
@NonNull java.util.List<KiiDownloader> listDownloadEntries(@NonNull android.content.Context context) throws StateStoreAccessException
Lists existing download entries. Entry Life cycle: The entry will be created on callingKiiDownloader.transfer(KiiRTransferProgressCallback)and deleted on completion/termination of download. For details please refer toKiiDownloader
NOTE: This api access to internal file storage stores status of download. Should not be executed in UI/Main thread.- Parameters:
context- application context.- Returns:
- List of KiiDownloader instance.
- Throws:
StateStoreAccessException- Thrown when failed to access the persistent storage stores transfer status. (ex. Disk full, etc.)
You can retry safely.
-
listDownloadEntries
void listDownloadEntries(@NonNull android.content.Context context, @NonNull T1 callback)Asynchronous call oflistDownloadEntries(Context)
NOTE: This method should be executed in UI thread.- Parameters:
context- application context.callback- called when completed.- Throws:
java.lang.IllegalArgumentException- Thrown if context or callback is null.- See Also:
listDownloadEntries(Context),KiiRTransferManagerCallback
-
-