Package apple.backgroundassets.protocol
Interface BADownloadManagerDelegate
-
public interface BADownloadManagerDelegateAPI-Since: 16.1
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceBADownloadManagerDelegate.Block_downloadDidReceiveChallengeCompletionHandler
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default voiddownloadDidBegin(@NotNull BADownload download)A download has started.default voiddownloadDidPause(@NotNull BADownload download)A download has paused.default voiddownloadDidReceiveChallengeCompletionHandler(@NotNull BADownload download, @NotNull NSURLAuthenticationChallenge challenge, @NotNull BADownloadManagerDelegate.Block_downloadDidReceiveChallengeCompletionHandler completionHandler)A download has tried to start but gotten a challenge quest.default voiddownloadDidWriteBytesTotalBytesWrittenTotalBytesExpectedToWrite(@NotNull BADownload download, long bytesWritten, long totalBytesWritten, long totalExpectedBytes)A download has made progress in bytes / total so far / total expected.default voiddownloadFailedWithError(@NotNull BADownload download, @NotNull NSError error)A download has failed with a specific error.default voiddownloadFinishedWithFileURL(@NotNull BADownload download, @NotNull NSURL fileURL)Download has finished.
-
-
-
Method Detail
-
downloadDidReceiveChallengeCompletionHandler
default void downloadDidReceiveChallengeCompletionHandler(@NotNull @NotNull BADownload download, @NotNull @NotNull NSURLAuthenticationChallenge challenge, @NotNull @NotNull BADownloadManagerDelegate.Block_downloadDidReceiveChallengeCompletionHandler completionHandler)A download has tried to start but gotten a challenge quest.
-
downloadDidWriteBytesTotalBytesWrittenTotalBytesExpectedToWrite
default void downloadDidWriteBytesTotalBytesWrittenTotalBytesExpectedToWrite(@NotNull @NotNull BADownload download, long bytesWritten, long totalBytesWritten, long totalExpectedBytes)A download has made progress in bytes / total so far / total expected.
-
downloadFailedWithError
default void downloadFailedWithError(@NotNull @NotNull BADownload download, @NotNull @NotNull NSError error)A download has failed with a specific error.
-
downloadFinishedWithFileURL
default void downloadFinishedWithFileURL(@NotNull @NotNull BADownload download, @NotNull @NotNull NSURL fileURL)Download has finished. The file located at `fileURL` must be moved before this method exits scope, or it will be deleted. It is strongly advised to move the file to its permanent destination rather than copy it. [@warning] The file is marked by the system for deletion when the device becomes low on storage. Avoid copying or modifying the file, as this may remove the system's ability to delete the file.- Parameters:
fileURL- A location to the file that has been downloaded.
-
downloadDidBegin
default void downloadDidBegin(@NotNull @NotNull BADownload download)A download has started.
-
downloadDidPause
default void downloadDidPause(@NotNull @NotNull BADownload download)A download has paused.
-
-