The maximum number of simultaneous download requests. Defaults to 5.
The image to be used to notify for a pending download request - e.g. loading indicator.
String value used when hooking to download error event.
String value used when hooking to downloaded event.
Removes all the previously cached images.
Temporary disables download requests.
Enables previously suspended download requests.
Adds a new download request at the end of the download queue. This will be the last download to start.
Gets the image for the specified key. May be undefined if the key is not present in the cache.
A basic method signature to hook an event listener (shortcut alias to the addEventListener method).
String corresponding to events (e.g. "propertyChange"). Optionally could be used more events separated by ,
(e.g. "propertyChange", "change").
Callback function which will be executed when event is raised.
An optional parameter which will be used as this
context for callback execution.
Raised when the image has been downloaded.
Raised if the image download errors.
Adds a new download request at the top of the download queue. This will be the next immediate download to start.
Removes the cache for the specified key.
Sets the image for the specified key.
Represents a class that stores handles image download requests and caches the already downloaded images.