# ResourceBuilders.AndroidLottieResourceByResId

Artifact: [androidx.wear.protolayout:protolayout](https://developer.android.com/jetpack/androidx/releases/wear-protolayout) [View Source](https://cs.android.com/search?q=file:androidx/wear/protolayout/ResourceBuilders.java+class:androidx.wear.protolayout.ResourceBuilders.AndroidLottieResourceByResId) Added in [1.3.0](https://developer.android.com/jetpack/androidx/releases/wear-protolayout#1.3.0)

*** ** * ** ***


```
@RequiresSchemaVersion(major = 1, minor = 500)
class ResourceBuilders.AndroidLottieResourceByResId
```

<br />

*** ** * ** ***

A Lottie resource that is read from a raw Android resource ID.

## Summary

| ### Nested types |
|---|
| `class https://developer.android.com/reference/kotlin/androidx/wear/protolayout/ResourceBuilders.AndroidLottieResourceByResId.Builder` Builder for `https://developer.android.com/reference/kotlin/androidx/wear/protolayout/ResourceBuilders.AndroidLottieResourceByResId` |

| ### Public functions |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/androidx/wear/protolayout/ResourceBuilders.AndroidLottieResourceByResId#equals(java.lang.Object)(obj: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html?)` |
| `java-static https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/wear/protolayout/ResourceBuilders.AndroidLottieResourceByResId#getMaxPropertiesCount()()` Returns how many properties can be added for customization of one Lottie animation via `https://developer.android.com/reference/kotlin/androidx/wear/protolayout/ResourceBuilders.AndroidLottieResourceByResId.Builder#setProperties(androidx.wear.protolayout.ResourceBuilders.LottieProperty...)` method. |
| `https://developer.android.com/reference/kotlin/androidx/wear/protolayout/expression/DynamicBuilders.DynamicFloat?` | `https://developer.android.com/reference/kotlin/androidx/wear/protolayout/ResourceBuilders.AndroidLottieResourceByResId#getProgress()()` Gets a `https://developer.android.com/reference/kotlin/androidx/wear/protolayout/expression/DynamicBuilders.DynamicFloat`, normally transformed from certain states with the data binding pipeline to control the progress of the animation. |
| `(https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-mutable-list/index.html)https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<https://developer.android.com/reference/kotlin/androidx/wear/protolayout/ResourceBuilders.LottieProperty!>` | `https://developer.android.com/reference/kotlin/androidx/wear/protolayout/ResourceBuilders.AndroidLottieResourceByResId#getProperties()()` Gets the collection of properties to customize Lottie further. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `@https://developer.android.com/reference/kotlin/androidx/annotation/RawRes https://developer.android.com/reference/kotlin/androidx/wear/protolayout/ResourceBuilders.AndroidLottieResourceByResId#getRawResourceId()()` Gets the Android resource ID, e.g. R.raw.foo. |
| `https://developer.android.com/reference/kotlin/androidx/wear/protolayout/TriggerBuilders.Trigger?` | `https://developer.android.com/reference/kotlin/androidx/wear/protolayout/ResourceBuilders.AndroidLottieResourceByResId#getStartTrigger()()` Gets the trigger to start the animation. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/wear/protolayout/ResourceBuilders.AndroidLottieResourceByResId#hashCode()()` |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/kotlin/androidx/wear/protolayout/ResourceBuilders.AndroidLottieResourceByResId#toString()()` |

## Public functions

### equals

```
fun equals(obj: Any?): Boolean
```

### getMaxPropertiesCount

Added in [1.4.2](https://developer.android.com/jetpack/androidx/releases/wear-protolayout#1.4.2)

```
java-static fun getMaxPropertiesCount(): Int
```

Returns how many properties can be added for customization of one Lottie animation via `https://developer.android.com/reference/kotlin/androidx/wear/protolayout/ResourceBuilders.AndroidLottieResourceByResId.Builder#setProperties(androidx.wear.protolayout.ResourceBuilders.LottieProperty...)` method.

### getProgress

Added in [1.3.0](https://developer.android.com/jetpack/androidx/releases/wear-protolayout#1.3.0)

```
fun getProgress(): DynamicBuilders.DynamicFloat?
```

Gets a `https://developer.android.com/reference/kotlin/androidx/wear/protolayout/expression/DynamicBuilders.DynamicFloat`, normally transformed from certain states with the data binding pipeline to control the progress of the animation.

### getProperties

Added in [1.4.2](https://developer.android.com/jetpack/androidx/releases/wear-protolayout#1.4.2)

```
fun getProperties(): (Mutable)List<ResourceBuilders.LottieProperty!>
```

Gets the collection of properties to customize Lottie further.

There shouldn't be more than 10 of properties in this collection. Each property can be applied to one or more elements in Lottie file.

### getRawResourceId

Added in [1.3.0](https://developer.android.com/jetpack/androidx/releases/wear-protolayout#1.3.0)

```
@RawRes
fun getRawResourceId(): Int
```

Gets the Android resource ID, e.g. R.raw.foo.

### getStartTrigger

Added in [1.3.0](https://developer.android.com/jetpack/androidx/releases/wear-protolayout#1.3.0)

```
fun getStartTrigger(): TriggerBuilders.Trigger?
```

Gets the trigger to start the animation.

### hashCode

```
fun hashCode(): Int
```

### toString

```
fun toString(): String
```