ResourceBuilders.AndroidLottieResourceByResId


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


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

Summary

Public methods

boolean
static int

Returns how many properties can be added for customization of one Lottie animation via setProperties method.

@Nullable DynamicBuilders.DynamicFloat

Gets a androidx.wear.protolayout.expression.DynamicBuilders.DynamicFloat, normally transformed from certain states with the data binding pipeline to control the progress of the animation.

@NonNull List<ResourceBuilders.LottieProperty>

Gets the collection of properties to customize Lottie further.

int

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

@Nullable TriggerBuilders.Trigger

Gets the trigger to start the animation.

int
@NonNull String

Public methods

equals

public boolean equals(@Nullable Object obj)

getMaxPropertiesCount

Added in 1.4.0-alpha01
public static int getMaxPropertiesCount()

Returns how many properties can be added for customization of one Lottie animation via setProperties method.

getProgress

Added in 1.3.0
public @Nullable DynamicBuilders.DynamicFloat getProgress()

Gets a 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.0-alpha01
public @NonNull List<ResourceBuilders.LottiePropertygetProperties()

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
@RawRes
public int getRawResourceId()

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

getStartTrigger

Added in 1.3.0
public @Nullable TriggerBuilders.Trigger getStartTrigger()

Gets the trigger to start the animation.

hashCode

public int hashCode()

toString

public @NonNull String toString()