public final class

AnimationParameterBuilders.AnimationParameters.Builder

extends java.lang.Object

 java.lang.Object

↳androidx.wear.protolayout.expression.AnimationParameterBuilders.AnimationParameters.Builder

Overview

Builder for AnimationParameterBuilders.AnimationParameters

Summary

Constructors
publicBuilder()

Methods
public AnimationParameterBuilders.AnimationParametersbuild()

Builds an instance from accumulated values.

public AnimationParameterBuilders.AnimationParameters.BuildersetDelayMillis(long delayMillis)

Sets animation delay in millis.

public AnimationParameterBuilders.AnimationParameters.BuildersetDurationMillis(long durationMillis)

Sets the duration of the animation in milliseconds.

public AnimationParameterBuilders.AnimationParameters.BuildersetEasing(AnimationParameterBuilders.Easing easing)

Sets the easing to be used for adjusting an animation's fraction.

from java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructors

public Builder()

Methods

public AnimationParameterBuilders.AnimationParameters.Builder setDurationMillis(long durationMillis)

Sets the duration of the animation in milliseconds. If not set, defaults to 300ms.

Sets the easing to be used for adjusting an animation's fraction. If not set, defaults to Linear Interpolator.

public AnimationParameterBuilders.AnimationParameters.Builder setDelayMillis(long delayMillis)

Sets animation delay in millis. When used outside repeatable, this is the delay to start the animation in milliseconds. When set inside repeatable, this is the delay before repeating animation in milliseconds. If not set, no delay will be applied.

Builds an instance from accumulated values.