TweenSpec
-
Cmn
class TweenSpec<T : Any?> : DurationBasedAnimationSpec
Creates a TweenSpec configured with the given duration, delay, and easing curve.
Summary
Public functions |
||
|---|---|---|
open operator Boolean |
Cmn
|
|
open Int |
hashCode() |
Cmn
|
open VectorizedTweenSpec<V> |
<V : AnimationVector> vectorize(converter: TwoWayConverter<T, V>)Creates a |
Cmn
|
Public properties |
||
|---|---|---|
Int |
the number of milliseconds the animation waits before starting, 0 by default. |
Cmn
|
Int |
duration of the |
Cmn
|
Easing |
the easing curve used by the animation. |
Cmn
|
Public constructors
TweenSpec
<T : Any?> TweenSpec(
durationMillis: Int = DefaultDurationMillis,
delay: Int = 0,
easing: Easing = FastOutSlowInEasing
)
| Parameters | |
|---|---|
durationMillis: Int = DefaultDurationMillis |
duration of the |
delay: Int = 0 |
the number of milliseconds the animation waits before starting, 0 by default. |
easing: Easing = FastOutSlowInEasing |
the easing curve used by the animation. |
Public functions
vectorize
open fun <V : AnimationVector> vectorize(converter: TwoWayConverter<T, V>): VectorizedTweenSpec<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 |