The running app instance.
Type of the resource the handler handles.
Gets the number of times to retry a failed request for the resource.
Sets the number of times to retry a failed request for the resource.
Add a parser that converts raw data into a Model. Default parser is for JSON models.
See JsonModelParser for example.
Function that decides on which parser to use. Function should take (url, data) arguments and return true if this parser should be used to parse the data into a Model. The first parser to return true is used.
Load a resource from a remote URL. The base implementation does nothing.
Either the URL of the resource to load or a structure containing the load and original URL.
The callback used when the resource is loaded or an error occurs.
Optional asset that is passed by ResourceLoader.
The open function is passed the raw resource data. The handler can then process the data into a format that can be used at runtime. The base implementation simply returns the data.
The URL of the resource to open.
The raw resource data passed by callback from ResourceHandler#load.
The parsed resource data.
Resource handler used for loading Model resources.