# 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)
public 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 methods |
|---|---|
| `static @https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/wear/protolayout/ResourceBuilders.LottieProperty` | `@https://developer.android.com/reference/androidx/wear/protolayout/expression/RequiresSchemaVersion(major = 1, minor = 600) https://developer.android.com/reference/androidx/wear/protolayout/ResourceBuilders.LottieProperty#colorForSlot(java.lang.String,androidx.wear.protolayout.ColorBuilders.ColorProp)(@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/java/lang/String.html sid, @https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/wear/protolayout/ColorBuilders.ColorProp color)` `https://developer.android.com/reference/androidx/wear/protolayout/ResourceBuilders.LottieProperty` customization for applying the given color on all slots with the specified slot ID. |

## Public methods

### colorForSlot

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

```
@RequiresSchemaVersion(major = 1, minor = 600)
public static @NonNull ResourceBuilders.LottieProperty colorForSlot(@NonNull String sid, @NonNull ColorBuilders.ColorProp color)
```

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

| Parameters |
|---|---|
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/java/lang/String.html sid` | 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. |
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/wear/protolayout/ColorBuilders.ColorProp color` | the color to be applied on slots with this slot ID |