> Documentation index: https://developer.android.com/reference/llms.txt

# LottieOverlay.LottieProvider

Artifact: [androidx.media3:media3-effect-lottie](https://developer.android.com/jetpack/androidx/releases/media3.md.txt) [View Source](https://cs.android.com/search?q=file:androidx/media3/effect/lottie/LottieOverlay.java+class:androidx.media3.effect.lottie.LottieOverlay.LottieProvider)

*** ** * ** ***


```
@UnstableApi
public interface LottieOverlay.LottieProvider
```

<br />

*** ** * ** ***

Provides assets for a Lottie animation and manages their lifecycle.

## Summary

| ### Public methods |
|---|---|
| `default Map<String, Typeface>` | `getFontMap()` Returns a map of pre-loaded fonts for the composition. |
| `default @Nullable ImageAssetDelegate` | `getImageAssetDelegate()` Returns an `ImageAssetDelegate` to handle image loading. |
| `abstract LottieComposition` | `getLottieComposition()` Returns the `LottieComposition`. |
| `abstract void` | `release()` Releases any resources held by this provider. |

## Public methods

### getFontMap

```
default Map<String, Typeface> getFontMap()
```

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.