getLength

abstract fun getLength(): Long

Returns the total length of the download. This is optional and only used for calculating the Progress during download.

Return

Total length of the download in bytes, or UNKNOWN_DOWNLOAD_SIZE.