Google is committed to advancing racial equity for Black communities. See how.

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.

Public methods
abstract DurationBasedAnimationSpec<V>
build(converter: TwoWayConverter<T, V>)

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.

Public methods

build

abstract fun <V : AnimationVector> build(converter: TwoWayConverter<T, V>): DurationBasedAnimationSpec<V>

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