loadOnDemand

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

Return

Asset wrapper which will eagerly load the asset on first request.

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.

See also


Return

Asset wrapper which will eagerly load the asset on first request.

Parameters

assetDescriptor

contains data necessary to load the asset.

See also