SnapSpec
-
Cmn
class SnapSpec<T : Any?> : DurationBasedAnimationSpec
SnapSpec describes a jump-cut type of animation. It immediately snaps the animating value to the end value.
Summary
Public functions |
||
|---|---|---|
open operator Boolean |
Cmn
|
|
open Int |
hashCode() |
Cmn
|
open VectorizedDurationBasedAnimationSpec<V> |
<V : AnimationVector> vectorize(converter: TwoWayConverter<T, V>)Creates a |
Cmn
|
Public properties |
||
|---|---|---|
Int |
the amount of time (in milliseconds) that the animation should wait before it starts. |
Cmn
|
Public functions
vectorize
open fun <V : AnimationVector> vectorize(converter: TwoWayConverter<T, V>): VectorizedDurationBasedAnimationSpec<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 |