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