forked from thinkpixellab/PxLoader
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpxloader.externs.js
108 lines (101 loc) · 2.82 KB
/
pxloader.externs.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
/**
* @constructor
* @this {PxLoader}
* @param {Object} settings
*/
function PxLoader(settings) {}
PxLoader.prototype.settings = {};
PxLoader.prototype.add = function(resource) {};
// TODO: improve event info declaration
var PxLoaderProgressInfo = {
resource: { img: {}, sound: {}, video: {} },
loaded: {},
error: {},
timeout: {},
completedCount: {},
totalCount: {}
};
/**
* @param {function(PxLoaderProgressInfo)} callback
* @param {string|Array} tags
*/
PxLoader.prototype.addProgressListener = function(callback, tags) {};
/**
* @param {function(Object)} callback
* @param {string|Array} tags
*/
PxLoader.prototype.addCompletionListener = function(callback, tags) {};
PxLoader.prototype.start = function(orderedTags) {};
PxLoader.prototype.isBusy = function() {};
PxLoader.prototype.onLoad = function(resource) {};
PxLoader.prototype.onError = function(resource) {};
PxLoader.prototype.onTimeout = function(resource) {};
PxLoader.prototype.log = function(showAll) {};
/**
* @param {string} url
* @param {string|Array} tags
* @param {number} priority
*/
PxLoader.prototype.addImage = function(url, tags, priority) {};
/**
* @param {*} id
* @param {string} url
* @param {string|Array} tags
* @param {number} priority
*/
PxLoader.prototype.addSound = function(id, url, tags, priority) {};
/**
* @param {string} url
* @param {string|Array} tags
* @param {number} priority
*/
PxLoader.prototype.addVideo = function(url, tags, priority) {};
/**
* @constructor
* @this {PxLoaderImage}
* @param {string} url
* @param {string|Array} tags
* @param {number} priority
*/
function PxLoaderImage(url, tags, priority) {}
/**
* @param {PxLoader} pxLoader
*/
PxLoaderImage.prototype.start = function(pxLoader) {};
PxLoaderImage.prototype.checkStatus = function() {};
PxLoaderImage.prototype.onTimeout = function() {};
PxLoaderImage.prototype.getName = function() {};
PxLoaderImage.prototype.img = {};
/**
* @constructor
* @this {PxLoaderSound}
* @param {*} id
* @param {string} url
* @param {string|Array} tags
* @param {number} priority
*/
function PxLoaderSound(id, url, tags, priority) {}
/**
* @param {PxLoader} pxLoader
*/
PxLoaderSound.prototype.start = function(pxLoader) {};
PxLoaderSound.prototype.checkStatus = function() {};
PxLoaderSound.prototype.onTimeout = function() {};
PxLoaderSound.prototype.getName = function() {};
PxLoaderSound.prototype.sound = {};
/**
* @constructor
* @this {PxLoaderVideo}
* @param {string} url
* @param {string|Array} tags
* @param {number} priority
*/
function PxLoaderVideo(url, tags, priority) {}
/**
* @param {PxLoader} pxLoader
*/
PxLoaderVideo.prototype.start = function(pxLoader) {};
PxLoaderVideo.prototype.checkStatus = function() {};
PxLoaderVideo.prototype.onTimeout = function() {};
PxLoaderVideo.prototype.getName = function() {};
PxLoaderVideo.prototype.video = {};