DownloadProperties

data class DownloadProperties(var maxDownloadTasks: Int = DEFAULT_MAX_DOWNLOAD_TASKS, var maxParallelDownloads: Int = DownloadManager.DEFAULT_MAX_PARALLEL_DOWNLOADS, var minRetryCount: Int = DownloadManager.DEFAULT_MIN_RETRY_COUNT, var requirements: List<DownloadRequirements> = DEFAULT_DOWNLOAD_REQUIREMENTS, var downloadsAutoPurgeOnExpiry: Boolean = false)

Constructors

Link copied to clipboard
constructor(maxDownloadTasks: Int = DEFAULT_MAX_DOWNLOAD_TASKS, maxParallelDownloads: Int = DownloadManager.DEFAULT_MAX_PARALLEL_DOWNLOADS, minRetryCount: Int = DownloadManager.DEFAULT_MIN_RETRY_COUNT, requirements: List<DownloadRequirements> = DEFAULT_DOWNLOAD_REQUIREMENTS, downloadsAutoPurgeOnExpiry: Boolean = false)

Properties

Link copied to clipboard

Enables automatic deletion of all the downloads which expired.

Link copied to clipboard

The number of threads used to execute download tasks. Multiple threads will speed up download tasks that can be split into smaller parts for parallel execution. Note: Must be greater than 0.

Link copied to clipboard

The maximum number of parallel downloads. Note: Must be greater than 0.

Link copied to clipboard

The minimum number of times that a download will be retried. Note: A download will fail if the specified number of retries is exceeded without any progress being made.

Link copied to clipboard