ResourceManager class

Constructors

ResourceManager()

Properties

failedResources List<ResourceManagerResource>
read-only
finishedResources List<ResourceManagerResource>
read-only
onProgress Stream<num>
read-only
pendingResources List<ResourceManagerResource>
read-only
resources List<ResourceManagerResource>
read-only
hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

addBitmapData(String name, String url, [BitmapDataLoadOptions options]) → void
addCustomObject(String name, Future loader) → void
addSound(String name, String url, [SoundLoadOptions options]) → void
addSoundSprite(String name, String url, [SoundLoadOptions options]) → void
addText(String name, String text) → void
addTextFile(String name, String url) → void
addTextureAtlas(String name, String url, [TextureAtlasFormat textureAtlasFormat = TextureAtlasFormat.JSONARRAY, BitmapDataLoadOptions options]) → void
addVideo(String name, String url, [VideoLoadOptions options]) → void
containsBitmapData(String name) bool
containsCustomObject(String name) bool
containsSound(String name) bool
containsSoundSprite(String name) bool
containsText(String name) bool
containsTextFile(String name) bool
containsTextureAtlas(String name) bool
containsVideo(String name) bool
dispose() → void
getBitmapData(String name) BitmapData
getCustomObject(String name) → dynamic
getSound(String name) Sound
getSoundSprite(String name) SoundSprite
getText(String name) String
getTextFile(String name) String
getTextureAtlas(String name) TextureAtlas
getVideo(String name) Video
load() Future<ResourceManager>
removeBitmapData(String name, {bool dispose: true}) → void
removeCustomObject(String name) → void
removeSound(String name) → void
removeSoundSprite(String name) → void
removeText(String name) → void
removeTextFile(String name) → void
removeTextureAtlas(String name, {bool dispose: true}) → void
removeVideo(String name) → void
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
Returns a string representation of this object.
inherited

Operators

operator ==(dynamic other) bool
The equality operator. [...]
inherited