Creates a TweenSpec configured with the given duration, delay, and easing curve.

Summary

Public constructors

<T : Any?> TweenSpec(durationMillis: Int, delay: Int, easing: Easing)
Cmn

Public functions

open operator Boolean
equals(other: Any?)
Cmn
open Int
Cmn
open VectorizedTweenSpec<V>
<V : AnimationVector> vectorize(converter: TwoWayConverter<T, V>)

Creates a VectorizedAnimationSpec with the given TwoWayConverter.

Cmn

Public properties

Int

the number of milliseconds the animation waits before starting, 0 by default.

Cmn
Int

duration of the VectorizedTweenSpec animation.

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 VectorizedTweenSpec animation.

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. FastOutSlowInEasing by default.

Public functions

equals

open operator fun equals(other: Any?): Boolean

hashCode

open fun hashCode(): Int

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 T from and to AnimationVector type

Public properties

delay

val delayInt

the number of milliseconds the animation waits before starting, 0 by default.

durationMillis

val durationMillisInt

duration of the VectorizedTweenSpec animation.

easing

val easingEasing

the easing curve used by the animation. FastOutSlowInEasing by default.