TimeTransition

data class TimeTransition(val startFraction: Double = 0.0, val endFraction: Double = 0.0, val startTimeMs: Long = 0, val endTimeMs: Long = 0)

Contains the time transition information from a start to an end point. This class helps to use the ValueAnimator for animations, see property animation system for more details.

Constructors

Link copied to clipboard
fun TimeTransition(startFraction: Double = 0.0, endFraction: Double = 0.0, startTimeMs: Long = 0, endTimeMs: Long = 0)

Properties

Link copied to clipboard
Link copied to clipboard
val endFraction: Double = 0.0

The progress of the animation at endTimeMs. Answers the question 'At which fraction should the animation end?'.

Link copied to clipboard
val endTimeMs: Long = 0

The transition end time in milliseconds since boot, including time spent in sleep.

Link copied to clipboard

The progress of the animation at startTimeMs. Answers the question 'How far along should the animation start?'.

Link copied to clipboard
val startTimeMs: Long = 0

The transition start time in milliseconds since boot, including time spent in sleep.