react-native-blob-util
Version:
A module provides upload, download, and files access API. Supports file stream read/write for process large files.
33 lines (24 loc) • 704 B
JavaScript
// Copyright 2016 wkh237@github. All rights reserved.
// Use of this source code is governed by a MIT-style license that can be
// found in the LICENSE file.
import Event from './Event';
export default class ProgressEvent extends Event {
_lengthComputable: boolean = false;
_loaded: number = -1;
_total: numver = -1;
constructor(lengthComputable, loaded, total) {
super();
this._lengthComputable = lengthComputable;
this._loaded = loaded;
this._total = total;
}
get lengthComputable() {
return this._lengthComputable;
}
get loaded() {
return this._loaded;
}
get total() {
return this._total;
}
}