# LottieOverlay.LottieProvider

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

*** ** * ** ***


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

<br />

*** ** * ** ***

Provides assets for a Lottie animation and manages their lifecycle.

## Summary

| ### Public functions |
|---|---|
| `(https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-mutable-map/index.html)https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-map/index.html<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!, https://developer.android.com/reference/android/graphics/Typeface.html!>!` | `https://developer.android.com/reference/kotlin/androidx/media3/effect/lottie/LottieOverlay.LottieProvider#getFontMap()()` Returns a map of pre-loaded fonts for the composition. |
| `https://javadoc.io/doc/com.airbnb.android/lottie/latest/com/airbnb/lottie/ImageAssetDelegate.html?` | `https://developer.android.com/reference/kotlin/androidx/media3/effect/lottie/LottieOverlay.LottieProvider#getImageAssetDelegate()()` Returns an `https://javadoc.io/doc/com.airbnb.android/lottie/latest/com/airbnb/lottie/ImageAssetDelegate.html` to handle image loading. |
| `https://javadoc.io/doc/com.airbnb.android/lottie/latest/com/airbnb/lottie/LottieComposition.html!` | `https://developer.android.com/reference/kotlin/androidx/media3/effect/lottie/LottieOverlay.LottieProvider#getLottieComposition()()` Returns the `https://javadoc.io/doc/com.airbnb.android/lottie/latest/com/airbnb/lottie/LottieComposition.html`. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/media3/effect/lottie/LottieOverlay.LottieProvider#release()()` 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 `https://javadoc.io/doc/com.airbnb.android/lottie/latest/com/airbnb/lottie/ImageAssetDelegate.html` to handle image loading.

The default implementation returns `null`.

### getLottieComposition

```
fun getLottieComposition(): LottieComposition!
```

Returns the `https://javadoc.io/doc/com.airbnb.android/lottie/latest/com/airbnb/lottie/LottieComposition.html`.

### release

```
fun release(): Unit
```

Releases any resources held by this provider.