progress event

Event fired when AppUpdate has made progress downloading the update.

Properties

Name Type Default Description
type string undefined The name of the event.Value will be progress.
lengthComputable boolean undefined Specifies whether or not the total size is known.
loaded int undefined The number of bytes transferred so far.
total int undefined The total number of bytes of content that will be transferred.If total size is unknown, this value is zero.

Type

object

Example

sap.AppUpdate.addEventListener('progress', function(e) {
    if (e.lengthComputable) {
         var percent = Math.round(e.loaded / e.total * 100);
         console.log("Progress " + percent);
    }
});

Since

3.0.2

Source

appupdate.js, line 167.