File Asset Loader
Base class for asset loading. Overload loadContents to customize the loading process.
This allows you to choose how assets, i.e. images, fonts, and audio, are loaded when referenced by a Rive file. This is especially useful for referenced assets which you may want to load once and supply to multiple Rive files, e.g. for expensive font files.
Asset loaders are typed to a specific RendererType via setRendererType. This is because images are renderer specific, and the asset loader is ultimately what creates FileAssets.
Apply it to a RiveAnimationView in one of the following ways:
File constructor
RiveFileRequest constructor
Via the XML attribute
riveAssetLoaderClassas the class name using reflectionThis will try to instantiate your class via a no-argument constructor or with Context if inheriting from ContextAssetLoader.
Inheritors
Properties
Functions
Increments the references for this counter. Cannot be used for initialization - use refs.incrementAndGet instead.
Override to customize the asset loading process.
Decrements the reference counter.