UnsupportedMethodException

Thrown when unsupported methods are called on the AssetManagerWrapper. It is typically only caused by AssetLoader instances or a AssetLoaderParameters.LoadedCallback.

AssetStorage reuses official AssetLoader implementations to load the assets. SynchronousAssetLoader and AsynchronousAssetLoader both expect an instance of AssetManager to perform some basic operations on assets. To support the loaders API, AssetStorage is wrapped with an AssetManagerWrapper which delegates supported methods to AssetStorage and throws this exception otherwise.

Most official loaders only call AssetManager.get to obtain asset dependencies, but custom loaders can perform operations that are unsupported by AssetStorage due to its asynchronous nature and storing assets mapped by path and type rather than path alone. If this exception causes the loading to fail, AssetLoader associated with the asset has to be refactored.

Constructors

Link copied to clipboard
constructor(method: String)

Properties

Link copied to clipboard
open val cause: Throwable?
Link copied to clipboard
open val message: String?

Functions

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard