setLoaderParameterSupplier

inline fun <L : Loader<*>> setLoaderParameterSupplier(noinline supplier: ParameterSupplier<*>)

Adds a custom ParameterSupplier that creates default instances of AssetLoaderParameters for the asset loader with L class. The supplier will be invoked with an AssetDescriptor each time default loader parameters are requested via getDefaultParameters.


fun <T> setLoaderParameterSupplier(loaderClass: Class<Loader<T>>, supplier: ParameterSupplier<T>)

Adds a custom ParameterSupplier that creates default instances of AssetLoaderParameters for the T asset loader with loaderClass. The supplier will be invoked with an AssetDescriptor each time default loader parameters are requested via getDefaultParameters.