AssetLoader
Extends:
EventHandler → AssetLoader
AssetLoader receives the URLs of assets to load, fetches them, and then fires an event when they're loaded or failed.
Static Member Summary
Static Public Members | ||
public static get |
Singleton: * |
Constructor Summary
Public Constructor | ||
public |
|
Method Summary
Public Methods | ||
public |
|
|
public |
|
|
public |
|
|
public |
|
|
public |
|
|
public |
|
Inherited Summary
From class EventHandler | ||
public get |
listeners: EventListener[]: * |
|
public |
addListener(callback: function(eventName: string, eventSource: EventHandler), eventName: Object | Symbol, once: bool) |
|
public |
cleanup() |
|
public |
removeListener(callback: *, eventName: undefined) |
|
public |
trigger(eventName: *, params: ...*) Send an event to listeners |
Static Public Members
public static get Singleton: * source
Public Constructors
public constructor() source
Public Methods
public async get(url: string): Promise<Blob?> source
Params:
Name | Type | Attribute | Description |
url | string |