load

inline fun <Type : Any> AssetManager.load(path: String, parameters: AssetLoaderParameters<Type>? = null): Asset<Type>

Return

Asset wrapper which allows to access the asset once it is loaded.

Parameters

path

path of the asset. Its file type must match AssetManager file handle resolver (internal by default).

parameters

optional asset loading parameters which might affect how the assets are loaded. Can be null.