FiniteAnimationSpec
-
Cmn
interface FiniteAnimationSpec<T : Any?> : AnimationSpec
DurationBasedAnimationSpec |
This describes |
RepeatableSpec |
|
SpringSpec |
Creates a |
ArcAnimationSpec |
|
KeyframesSpec |
|
KeyframesWithSplineSpec |
|
SnapSpec |
|
TweenSpec |
Creates a TweenSpec configured with the given duration, delay, and easing curve. |
FiniteAnimationSpec is the interface that all non-infinite AnimationSpecs implement, including: TweenSpec, SpringSpec, KeyframesSpec, RepeatableSpec, SnapSpec, etc. By definition, InfiniteRepeatableSpec does not implement this interface.
| See also | |
|---|---|
InfiniteRepeatableSpec |
Summary
Public functions |
||
|---|---|---|
VectorizedFiniteAnimationSpec<V> |
<V : AnimationVector> vectorize(converter: TwoWayConverter<T, V>)Creates a |
Cmn
|
Public functions
vectorize
fun <V : AnimationVector> vectorize(converter: TwoWayConverter<T, V>): VectorizedFiniteAnimationSpec<V>
Creates a VectorizedAnimationSpec with the given TwoWayConverter.
The underlying animation system operates on AnimationVectors. T will be converted to AnimationVector to animate. VectorizedAnimationSpec describes how the converted AnimationVector should be animated. E.g. The animation could simply interpolate between the start and end values (i.e.TweenSpec), or apply spring physics to produce the motion (i.e. SpringSpec), etc)
| Parameters | |
|---|---|
converter: TwoWayConverter<T, V> |
converts the type |