# ResourceBuilders.LottieProperty

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.LottieProperty) Added in [1.4.2](https://developer.android.com/jetpack/androidx/releases/wear-protolayout#1.4.2)

*** ** * ** ***


```
@RequiresSchemaVersion(major = 1, minor = 600)
abstract class ResourceBuilders.LottieProperty
```

<br />

*** ** * ** ***

A single point of customization in a Lottie file.

Property can be applicable to one or more elements.

## Summary

| ### Public functions |
|---|---|
| `java-static https://developer.android.com/reference/kotlin/androidx/wear/protolayout/ResourceBuilders.LottieProperty` | `@https://developer.android.com/reference/kotlin/androidx/wear/protolayout/expression/RequiresSchemaVersion(major = 1, minor = 600) https://developer.android.com/reference/kotlin/androidx/wear/protolayout/ResourceBuilders.LottieProperty#colorForSlot(java.lang.String,androidx.wear.protolayout.ColorBuilders.ColorProp)(sid: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html, color: https://developer.android.com/reference/kotlin/androidx/wear/protolayout/ColorBuilders.ColorProp)` `https://developer.android.com/reference/kotlin/androidx/wear/protolayout/ResourceBuilders.LottieProperty` customization for applying the given color on all slots with the specified slot ID. |

## Public functions

### colorForSlot

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

```
@RequiresSchemaVersion(major = 1, minor = 600)
java-static fun colorForSlot(sid: String, color: ColorBuilders.ColorProp): ResourceBuilders.LottieProperty
```

`https://developer.android.com/reference/kotlin/androidx/wear/protolayout/ResourceBuilders.LottieProperty` customization for applying the given color on all slots with the specified slot ID.

| Parameters |
|---|---|
| `sid: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | the slot ID to which color filter should be applied. The same ID can correspond to multiple slots, however, for each of those, all parents in the path should have names. |
| `color: https://developer.android.com/reference/kotlin/androidx/wear/protolayout/ColorBuilders.ColorProp` | the color to be applied on slots with this slot ID |