ProgressEvent
package js.html
extends Event
Available on js
The ProgressEvent
interface represents events measuring progress of an underlying process, like an HTTP request (for an XMLHttpRequest
, or the loading of the underlying resource of an img
, audio
, video
, style
or link
).
Documentation ProgressEvent by Mozilla Contributors, licensed under CC-BY-SA 2.5.
See also:
Constructor
new(type:String, ?eventInitDict:Null<ProgressEventInit>)
Throws:
null |
DOMError |
---|
Variables
read onlylengthComputable:Bool
Is a Boolean
flag indicating if the total work to be done, and the amount of work already done, by the underlying process is calculable. In other words, it tells if the progress is measurable or not.
read onlyloaded:Int
Is an unsigned long long
representing the amount of work already performed by the underlying process. The ratio of work done can be calculated with the property and ProgressEvent.total
. When downloading a resource using HTTP, this only represent the part of the content itself, not headers and other overhead.
read onlytotal:Int
Is an unsigned long long
representing the total amount of work that the underlying process is in the progress of performing. When downloading a resource using HTTP, this only represent the content itself, not headers and other overhead.
© 2005–2020 Haxe Foundation
Licensed under a MIT license.
https://api.haxe.org/js/html/ProgressEvent.html