assetDescriptor

inline fun <Type : Any> assetDescriptor(path: String, parameters: AssetLoaderParameters<Type>? = null): AssetDescriptor<Type>

Allows to quickly prepare a typed AssetDescriptor instance with more Kotlin-friendly syntax.

Return

typed AssetDescriptor instance storing the passed data.

Parameters

path

path to the asset file. Is likely to be resolved by an AssetManager.

parameters

optional loading parameters that might affect how the asset is loaded.


inline fun <Type : Any> assetDescriptor(file: FileHandle, parameters: AssetLoaderParameters<Type>? = null): AssetDescriptor<Type>

Allows to quickly prepare a typed AssetDescriptor instance with more Kotlin-friendly syntax.

Return

typed AssetDescriptor instance storing the passed data.

Parameters

file

file representation of the asset.

parameters

optional loading parameters that might affect how the asset is loaded.