KeyframesBuilder

class KeyframesBuilder<T> : DurationBasedAnimationBuilder<T>
kotlin.Any
   ↳ androidx.animation.AnimationBuilder<T>
   ↳ androidx.animation.DurationBasedAnimationBuilder<T>
   ↳ androidx.animation.KeyframesBuilder

KeyframesBuilder creates a Keyframes animation. Keyframes animation based on the values defined at different timestamps in the duration of the animation (i.e. different keyframes). Each keyframe can be defined using at. Keyframes allows very specific animation definitions with a precision to millisecond.


//Unresolved: androidx.animation.samples.FloatKeyframesBuilder
You can also provide a custom Easing for the interval with use of with function appliedfor the interval starting keyframe.

//Unresolved: androidx.animation.samples.KeyframesBuilderWithEasing

Summary

Nested classes

inner

Holder class for building a keyframes animation.

Public constructors

KeyframesBuilder creates a Keyframes animation.

Public methods

infix KeyframesBuilder.KeyframeEntity<T>
T.at(timeStamp: Int)

Adds a keyframe so that animation value will be this at time: timeStamp

infix Unit

Adds an Easing for the interval started with the just provided timestamp.

Inherited properties

Public constructors

<init>

KeyframesBuilder()

KeyframesBuilder creates a Keyframes animation. Keyframes animation based on the values defined at different timestamps in the duration of the animation (i.e. different keyframes). Each keyframe can be defined using at. Keyframes allows very specific animation definitions with a precision to millisecond.


//Unresolved: androidx.animation.samples.FloatKeyframesBuilder
You can also provide a custom Easing for the interval with use of with function appliedfor the interval starting keyframe.

//Unresolved: androidx.animation.samples.KeyframesBuilderWithEasing

Public methods

at

infix fun T.at(timeStamp: Int): KeyframesBuilder.KeyframeEntity<T>

Adds a keyframe so that animation value will be this at time: timeStamp

Parameters
timeStamp: Int The time in the during when animation should reach value: this
Return
an KeyframeEntity so a custom Easing can be added by with method.

with

infix fun KeyframesBuilder.KeyframeEntity<T>.with(easing: Easing): Unit

Adds an Easing for the interval started with the just provided timestamp.


//Unresolved: androidx.animation.samples.KeyframesBuilderWithEasing
Parameters
easing: Easing Easing to be used for the next interval.