ResourceBuilders.LottieProperty


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


A single point of customization in a Lottie file.

Property can be applicable to one or more elements.

Summary

Public functions

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

LottieProperty customization for applying the given color on all slots with the specified slot ID.

Public functions

colorForSlot

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

LottieProperty customization for applying the given color on all slots with the specified slot ID.

Parameters
sid: String

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: ColorBuilders.ColorProp

the color to be applied on slots with this slot ID