LottieOverlay.LottieProvider


@UnstableApi
interface LottieOverlay.LottieProvider


Provides assets for a Lottie animation and manages their lifecycle.

Summary

Public functions

(Mutable)Map<String!, Typeface!>!

Returns a map of pre-loaded fonts for the composition.

ImageAssetDelegate?

Returns an ImageAssetDelegate to handle image loading.

LottieComposition!

Returns the LottieComposition.

Unit

Releases any resources held by this provider.

Public functions

getFontMap

fun getFontMap(): (Mutable)Map<String!, Typeface!>!

Returns a map of pre-loaded fonts for the composition.

The default implementation returns an empty map.

getImageAssetDelegate

fun getImageAssetDelegate(): ImageAssetDelegate?

Returns an ImageAssetDelegate to handle image loading.

The default implementation returns null.

getLottieComposition

fun getLottieComposition(): LottieComposition!

Returns the LottieComposition.

release

fun release(): Unit

Releases any resources held by this provider.