ResourceManager class

Constructors

ResourceManager()

Properties

failedResources List<ResourceManagerResource>
no setter
finishedResources List<ResourceManagerResource>
no setter
hashCode int
The hash code for this object.
no setterinherited
onProgress Stream<num>
no setter
pendingResources List<ResourceManagerResource>
no setter
resources List<ResourceManagerResource>
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

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>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
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
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited