getLoader

inline fun <Asset> getLoader(path: String? = null): Loader<Asset>?

Returns the AssetLoader associated with the file. Asset is used to determine the type of the loaded file. path might be necessary to choose the correct loader, as some loaders might be assigned to specific file suffixes or extensions.


fun <Asset> getLoader(type: Class<Asset>, path: String?): Loader<Asset>?

Internal API exposed for inlined method. See inlined getLoader with generics. type is the class of the loaded asset, while path is used to determine if a loader specifically assigned to a file suffix or extension is necessary.