ResourceBuilders.AndroidLottieResourceByResId


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


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

Summary

Public functions

Boolean
equals(obj: Any?)
java-static Int

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

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.

(Mutable)List<ResourceBuilders.LottieProperty!>

Gets the collection of properties to customize Lottie further.

Int

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

TriggerBuilders.Trigger?

Gets the trigger to start the animation.

Int
String

Public functions

equals

fun equals(obj: Any?): Boolean

getMaxPropertiesCount

Added in 1.4.0-alpha01
java-static fun getMaxPropertiesCount(): Int

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

getProgress

Added in 1.3.0
fun getProgress(): 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.

getProperties

Added in 1.4.0-alpha01
fun getProperties(): (Mutable)List<ResourceBuilders.LottieProperty!>

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
fun getRawResourceId(): Int

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

getStartTrigger

Added in 1.3.0
fun getStartTrigger(): TriggerBuilders.Trigger?

Gets the trigger to start the animation.

hashCode

fun hashCode(): Int

toString

fun toString(): String