Static methods

@:value({ rootPath : null })staticfromBytes(bytes:Bytes, ?rootPath:String):AssetLibrary

@:value({ rootPath : null })staticfromFile(path:String, ?rootPath:String):AssetLibrary

@:value({ rootPath : null })staticloadFromBytes(bytes:Bytes, ?rootPath:String):Future<AssetLibrary>

@:value({ rootPath : null })staticloadFromFile(path:String, ?rootPath:String):Future<AssetLibrary>

Constructor

new()

Variables

@:value(new Event<Void>())onChange:_Event_Void_Void<() ‑> Void> = new Event<Void>()

Methods

exists(id:String, type:String):Bool

getAsset(id:String, type:String):Dynamic

getBytes(id:String):Bytes

getFont(id:String):Font

getImage(id:String):Image

getPath(id:String):String

getText(id:String):String

isLocal(id:String, type:String):Bool

list(type:String):Array<String>

loadAsset(id:String, type:String):Future<Dynamic>

loadBytes(id:String):Future<Bytes>

loadFont(id:String):Future<Font>

loadImage(id:String):Future<Image>

loadText(id:String):Future<String>

unload():Void