AnimationParameterBuilders.AnimationSpec.Builder


class AnimationParameterBuilders.AnimationSpec.Builder


Builder for AnimationSpec

Summary

Public constructors

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

Public functions

AnimationParameterBuilders.AnimationSpec

Builds an instance from accumulated values.

AnimationParameterBuilders.AnimationSpec.Builder
@RequiresSchemaVersion(major = 1, minor = 200)
setAnimationParameters(
    animationParameters: AnimationParameterBuilders.AnimationParameters
)

Sets animation parameters including duration, easing and repeat delay.

AnimationParameterBuilders.AnimationSpec.Builder

Sets the repeatable mode to be used for specifying repetition parameters for the animation.

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.AnimationSpec

Builds an instance from accumulated values.

setAnimationParameters

Added in 1.0.0
@RequiresSchemaVersion(major = 1, minor = 200)
fun setAnimationParameters(
    animationParameters: AnimationParameterBuilders.AnimationParameters
): AnimationParameterBuilders.AnimationSpec.Builder

Sets animation parameters including duration, easing and repeat delay.

setRepeatable

Added in 1.0.0
@RequiresSchemaVersion(major = 1, minor = 200)
fun setRepeatable(repeatable: AnimationParameterBuilders.Repeatable): AnimationParameterBuilders.AnimationSpec.Builder

Sets the repeatable mode to be used for specifying repetition parameters for the animation. If not set, animation won't be repeated.