API Documentation for: 0.6.0
Show:

ManifestLoader Class

Defined in: ManifestLoader:41
Module: PreloadJS

A loader for JSON manifests. Items inside the manifest are loaded before the loader completes. To load manifests using JSONP, specify a callback as part of the LoadItem. Note that the JSONLoader and JSONPLoader are higher priority loaders, so manifests must set the LoadItem type property to MANIFEST.

Constructor

ManifestLoader

(
  • loadItem
)

Defined in ManifestLoader:41

Parameters:

Methods

_handleManifestComplete

(
  • event
)
private

The manifest has completed loading. This triggers the complete Event from the ManifestLoader.

Parameters:

_handleManifestError

(
  • event
)
private

The manifest has reported an error with one of the files.

Parameters:

_handleManifestFileLoad

(
  • event
)
private

An item from the _manifestQueue:property has completed.

Parameters:

_handleManifestProgress

(
  • event
)
private

The manifest has reported progress.

Parameters:

_loadManifest

(
  • json
)
private

Defined in _loadManifest:130

Create and load the manifest items once the actual manifest has been loaded.

Parameters:

canLoadItem

(
  • item
)
Boolean static

Defined in canLoadItem:80

Determines if the loader can load a specific item. This loader can only load items that are of type MANIFEST

Parameters:

  • item LoadItem | Object

    The LoadItem that a LoadQueue is trying to load.

Returns:

Boolean:

Whether the loader can load the item.

Properties

_manifestQueue

LoadQueue private

Defined in _manifestQueue:56

An internal LoadQueue that loads the contents of the manifest.

MANIFEST_PROGRESS

Number private static

The amount of progress that the manifest itself takes up.

Default: 0.25 (25%)