Interface ProgressEvent

All Superinterfaces:
Event
All Known Implementing Classes:
ProgressEventImpl

public interface ProgressEvent extends Event
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>).
See Also:
  • Method Details

    • getLengthComputable

      boolean getLengthComputable()
      The ProgressEvent.lengthComputable read-only property is a Boolean flag indicating if the resource concerned by the ProgressEvent has a length that can be calculated. If not, the ProgressEvent.total property has no significant value.
      See Also:
    • getLoaded

      Double getLoaded()
      The ProgressEvent.loaded read-only property is an integer 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.
      See Also:
    • getTotal

      Double getTotal()
      The ProgressEvent.total read-only property is an unsigned 64-bit integer value indicating the total size of the data being processed or transmitted. In the case of an HTTP transmission, this is the size of the body of the message (the Content-Length), and does not include headers and other overhead.
      See Also: