onDemandResources.progress()

Type Function
Return value Numbers
Revision Release 2024.3703
Keywords on-demand resources, onDemandResources, progress
See also onDemandResources.request()
onDemandResources.*

Overview

Returns the progress of the currently downloading resources (by tag) as a number between 0 (0%) and 1 (100%). Also provides information about the total size and how much is completed, although this data is not necessarily reliable.

Gotchas

You will only get valid progress data after you’ve requested an on-demand resources download.

Syntax

onDemandResources.progress( tag )
tag (required)

String. Tag for which to fetch the progress values.

Example

local progress, totalSize, amountComplete = onDemandResources.progress( "imgL1" )