AnimationParameterBuilders.AnimationParameters.Builder


public final class AnimationParameterBuilders.AnimationParameters.Builder


Builder for AnimationParameters

Summary

Public constructors

@RequiresSchemaVersion(major = 1, minor = 200)
Builder()

Public methods

@NonNull AnimationParameterBuilders.AnimationParameters

Builds an instance from accumulated values.

@NonNull AnimationParameterBuilders.AnimationParameters.Builder
@RequiresSchemaVersion(major = 1, minor = 200)
setDelayMillis(@IntRange(from = 0) long delayMillis)

Sets animation delay in millis.

@NonNull AnimationParameterBuilders.AnimationParameters.Builder
@RequiresSchemaVersion(major = 1, minor = 200)
setDurationMillis(@IntRange(from = 0) long durationMillis)

Sets the duration of the animation in milliseconds.

@NonNull AnimationParameterBuilders.AnimationParameters.Builder

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

Public constructors

Builder

Added in 1.0.0
@RequiresSchemaVersion(major = 1, minor = 200)
public Builder()

Public methods

build

Added in 1.0.0
public @NonNull AnimationParameterBuilders.AnimationParameters build()

Builds an instance from accumulated values.

setDelayMillis

Added in 1.0.0
@RequiresSchemaVersion(major = 1, minor = 200)
public @NonNull AnimationParameterBuilders.AnimationParameters.Builder setDelayMillis(@IntRange(from = 0) 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.

setDurationMillis

Added in 1.0.0
@RequiresSchemaVersion(major = 1, minor = 200)
public @NonNull AnimationParameterBuilders.AnimationParameters.Builder setDurationMillis(@IntRange(from = 0) long durationMillis)

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

setEasing

Added in 1.0.0
@RequiresSchemaVersion(major = 1, minor = 200)
public @NonNull AnimationParameterBuilders.AnimationParameters.Builder setEasing(@NonNull AnimationParameterBuilders.Easing easing)

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