Interface KiiDownloadRTransferManager<T1 extends KiiDownloadRTransferManagerCallback<T2,​T1>,​T2 extends KiiDownloadRTransferManager<T1,​T2>>

    • 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 calling KiiDownloader.transfer(KiiRTransferProgressCallback) and deleted on completion/termination of download. For details please refer to KiiDownloader
        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 of listDownloadEntries(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