FallbackAssetLoader

constructor(context: Context, loadCDNAssets: Boolean = true, loader: FileAssetLoader? = null)

Parameters

context

The application context.

loadCDNAssets

Whether to load assets from Rive's CDN. This appends a CDNAssetLoader to the list of loaders if true (default), allowing loading of assets marked as "Hosted" in the Rive editor.

loader

An optional initial FileAssetLoader to add to the list of loaders.