Class: GDProgressEvent

GDProgressEvent()

Is responsible for progress event

Constructor

new GDProgressEvent()

Properties:
Name Type Description
type String Type of file being processed
bubbles Boolean false
cancelBubble Boolean false
cancelable Boolean false
lengthComputable Boolean Property that shows if length of file can be computed or not
loaded Number Number of loaded bites at the moment
total Number Total number of bites
target GDFile File being processed
Source:
Example
// This object is used by other classes and is not used directly
var fileTransfer = new FileTransfer();

fileTransfer.onprogress = function(progressEvent) {
    if (progressEvent.lengthComputable) {
        var perc = Math.floor(progressEvent.loaded / progressEvent.total * 100);
        console.log(perc + '%');
    }
};