Interface BADownloadManagerDelegate


  • public interface BADownloadManagerDelegate
    API-Since: 16.1
    • Method Detail

      • 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.