public interface AssetLocator
AssetLocatoris used to locate a resource based on an AssetKey.
|Modifier and Type||Method and Description|
Request to locate an asset.
void setRootPath(java.lang.String rootPath)
rootPath- The root path where to look for assets. Typically, this method will only be called once for each instance of an asset locator.
AssetInfo locate(AssetManager manager, AssetKey key)
AssetInfoimplementation provided should have a proper return value for its
manager- for managing assets
key- identifies the asset to be located
AssetInfothat was located, or null if not found.