public interface AssetEventListener
AssetEventListeneris an interface for listening to various events happening inside
AssetManager. For now, it is possible to receive an event when an asset has been requested (one of the AssetManager.load***() methods were called), or when an asset has been loaded.
|Modifier and Type||Method and Description|
Called when an asset dependency cannot be found for an asset.
Called when an asset has been successfully loaded (e.g: loaded from file system and parsed).
Called when an asset has been requested (e.g.
void assetLoaded(AssetKey key)
key- the AssetKey for the asset loaded.
void assetRequested(AssetKey key)
key- the key of the requested asset
void assetDependencyNotFound(AssetKey parentKey, AssetKey dependentAssetKey)
AssetNotFoundException, will cause an invocation of this callback.
parentKey- The key of the parent asset that is being loaded from within the user application.
dependentAssetKey- The asset key of the dependent asset that has failed to load.