setRetryCount

open fun setRetryCount(retryCount: Int)

Sets the number of times a download should be retried on failure.

Default value is 10.

Set to -1 for infinite amount of retries.