interface ComposeAnimation


Simple interface to make it easier to share Compose animation objects between ui-tooling and Android Studio. Since both ends communicate mostly using bytecode manipulation and reflection, being able to parse these objects into a common type makes

Summary

Public properties

Any

The actual animation object.

open String?

A label which can be used to represent the animation as text in Android Studio.

open Set<Any>

All the available states of a TransitionAnimation.

ComposeAnimationType

The animation type.

Public properties

animationObject

Added in 1.0.0
val animationObject: Any

The actual animation object.

label

Added in 1.0.0
open val label: String?

A label which can be used to represent the animation as text in Android Studio. Null if the label is not set or if it can't be inferred from the animation states.

states

Added in 1.0.0
open val states: Set<Any>

All the available states of a TransitionAnimation.

Throws
UnsupportedOperationException

if type does not return TRANSITION_ANIMATION.

type

Added in 1.0.0
val type: ComposeAnimationType

The animation type. Ideally, the type should be checked before accessing properties specific to a certain type, e.g. states.