SnapSpec describes a jump-cut type of animation. It immediately snaps the animating value to the end value.

Summary

Public constructors

<T : Any?> SnapSpec(delay: Int)
Cmn

Public functions

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

Creates a VectorizedAnimationSpec with the given TwoWayConverter.

Cmn

Public properties

Int

the amount of time (in milliseconds) that the animation should wait before it starts.

Cmn

Public constructors

SnapSpec

<T : Any?> SnapSpec(delay: Int = 0)
Parameters
delay: Int = 0

the amount of time (in milliseconds) that the animation should wait before it starts. Defaults to 0.

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

Public properties

delay

val delayInt

the amount of time (in milliseconds) that the animation should wait before it starts. Defaults to 0.