DownloadOperation

data class DownloadOperation(    val tag: Tag? = null,     val url: String? = null,     val bytesLoaded: Long? = null,     val progress: Double,     val isFinished: Boolean)

A description of download operation (active or just finished).

Constructors

Link copied to clipboard
fun DownloadOperation(    tag: Tag? = null,     url: String? = null,     bytesLoaded: Long? = null,     progress: Double,     isFinished: Boolean)

Properties

Link copied to clipboard
val bytesLoaded: Long? = null

Number of bytes already loaded.

Link copied to clipboard
val isFinished: Boolean

Flag indicating whether the download has already finished.

Link copied to clipboard
val progress: Double

Progress of the operation. Fractional (0...1).

Link copied to clipboard
val tag: Tag? = null

Purpose of the download operation. Model ID for the rings, or finger/hand recognition for TF Models.

Link copied to clipboard
val url: String? = null

URL of the downloaded resource.