# LoadSubpackageTask.onProgressUpdate(function callback)

Start from base library version 2.1.0. Please remaining backward compatible.

Listens on the subpackage loading progress change event.

# Parameters

# function callback

The callback function for the subpackage loading progress change event.

# Parameters

# Object res
Property Type Description
progress number Subpackage download progress percentage
totalBytesWritten number The length of downloaded data, in bytes
totalBytesExpectedToWrite number The length of data expected to be downloaded, in bytes