AnimationParameterBuilders.AnimationSpec.Builder


public final class AnimationParameterBuilders.AnimationSpec.Builder


Builder for AnimationSpec

Summary

Public constructors

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

Public methods

@NonNull AnimationParameterBuilders.AnimationSpec

Builds an instance from accumulated values.

@NonNull AnimationParameterBuilders.AnimationSpec.Builder

Sets animation parameters including duration, easing and repeat delay.

@NonNull 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)
public Builder()

Public methods

build

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

Builds an instance from accumulated values.

setAnimationParameters

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

Sets animation parameters including duration, easing and repeat delay.

setRepeatable

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

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