Package com.jme3.asset
Interface AssetEventListener
public interface AssetEventListener
AssetEventListener is 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.- 
Method SummaryModifier and TypeMethodDescriptionvoidassetDependencyNotFound(AssetKey parentKey, AssetKey dependentAssetKey) Called when an asset dependency cannot be found for an asset.voidassetLoaded(AssetKey key) Called when an asset has been successfully loaded (e.g: loaded from file system and parsed).voidassetRequested(AssetKey key) Called when an asset has been requested (e.g.
- 
Method Details- 
assetLoadedCalled when an asset has been successfully loaded (e.g: loaded from file system and parsed).- Parameters:
- key- the AssetKey for the asset loaded.
 
- 
assetRequestedCalled when an asset has been requested (e.g. any of the load*** methods in AssetManager are called). In contrast to the assetLoaded() method, this one will be called even if the asset has failed to load, or if it was retrieved from the cache.- Parameters:
- key- the key of the requested asset
 
- 
assetDependencyNotFoundCalled when an asset dependency cannot be found for an asset. When an asset is loaded, each of its dependent assets that have failed to load due to aAssetNotFoundException, will cause an invocation of this callback.- Parameters:
- 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.
 
 
-