ResourceBuilders.LottieProperty


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


A single point of customization in a Lottie file.

Property can be applicable to one or more elements.

Summary

Public methods

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

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

Public methods

colorForSlot

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

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

Parameters
@NonNull String 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.

@NonNull ColorBuilders.ColorProp color

the color to be applied on slots with this slot ID