The Developer Preview for Android 11 is now available; test it out and share your feedback.

DurationBasedAnimationBuilder

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

Base class for an AnimationBuilder to create animations based on a fixed duration.

Summary

Public constructors

Base class for an AnimationBuilder to create animations based on a fixed duration.

Inherited extension functions

From androidx.compose
operator T

IMPORTANT: This global operator is TEMPORARY, and should be removed whenever an answer for contextual composers is reached.

Properties

Int

The amount of time that the animation should be delayed.

Int

Duration of the animation in milliseconds.

Public constructors

<init>

DurationBasedAnimationBuilder()

Base class for an AnimationBuilder to create animations based on a fixed duration.

Properties

delay

var delay: Int

The amount of time that the animation should be delayed.

duration

var duration: Int

Duration of the animation in milliseconds. Defaults to DefaultDuration