AnimationParameterBuilders.AnimationParameters.Builder


class AnimationParameterBuilders.AnimationParameters.Builder


Builder for AnimationParameters

Summary

Public constructors

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

Public functions

AnimationParameterBuilders.AnimationParameters

Builds an instance from accumulated values.

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

Sets animation delay in millis.

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

Sets the duration of the animation in milliseconds.

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)
Builder()

Public functions

build

Added in 1.0.0
fun build(): AnimationParameterBuilders.AnimationParameters

Builds an instance from accumulated values.

setDelayMillis

Added in 1.0.0
@RequiresSchemaVersion(major = 1, minor = 200)
fun setDelayMillis(delayMillis: @IntRange(from = 0) Long): AnimationParameterBuilders.AnimationParameters.Builder

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)
fun setDurationMillis(durationMillis: @IntRange(from = 0) Long): AnimationParameterBuilders.AnimationParameters.Builder

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)
fun setEasing(easing: AnimationParameterBuilders.Easing): AnimationParameterBuilders.AnimationParameters.Builder

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