TweenSpec

@Immutable
class TweenSpec<T>(val durationMillis: Int = AnimationConstants.DefaultDurationMillis, val delay: Int = 0, val easing: Easing = FastOutSlowInEasing) : DurationBasedAnimationSpec<T>

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

Parameters

durationMillis
delay

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

easing

the easing curve used by the animation. com.jakewharton.mosaic.animation.FastOutSlowInEasing by default.

Constructors

Link copied to clipboard
constructor(durationMillis: Int = AnimationConstants.DefaultDurationMillis, delay: Int = 0, easing: Easing = FastOutSlowInEasing)

Properties

Link copied to clipboard
val delay: Int = 0
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int