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

SnapBuilder

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

Builds Snap animation for immediately switching the animating value to the end value.

Summary

Public constructors

Builds Snap animation for immediately switching the animating value to the end value.

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

Properties
Int

The amount of time in milliseconds that the snap animation should wait before it runs.

Public constructors

<init>

SnapBuilder()

Builds Snap animation for immediately switching the animating value to the end value.

Public methods

build

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

Properties

delay

var delay: Int

The amount of time in milliseconds that the snap animation should wait before it runs. 0 by default.