LottieOverlay.LottieProvider


@UnstableApi
public interface LottieOverlay.LottieProvider


Provides assets for a Lottie animation and manages their lifecycle.

Summary

Public methods

default Map<StringTypeface>

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

default @Nullable ImageAssetDelegate

Returns an ImageAssetDelegate to handle image loading.

abstract LottieComposition

Returns the LottieComposition.

abstract void

Releases any resources held by this provider.

Public methods

getFontMap

default Map<StringTypefacegetFontMap()

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

The default implementation returns an empty map.

getImageAssetDelegate

default @Nullable ImageAssetDelegate getImageAssetDelegate()

Returns an ImageAssetDelegate to handle image loading.

The default implementation returns null.

getLottieComposition

abstract LottieComposition getLottieComposition()

Returns the LottieComposition.

release

abstract void release()

Releases any resources held by this provider.