AnimationParameterBuilders.Repeatable.Builder


class AnimationParameterBuilders.Repeatable.Builder


Builder for Repeatable

Summary

Public constructors

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

Public functions

AnimationParameterBuilders.Repeatable

Builds an instance from accumulated values.

AnimationParameterBuilders.Repeatable.Builder
@RequiresSchemaVersion(major = 1, minor = 200)
setForwardRepeatOverride(
    forwardRepeatOverride: AnimationParameterBuilders.AnimationParameters
)

Sets optional custom parameters for the forward passes of animation.

AnimationParameterBuilders.Repeatable.Builder
@RequiresSchemaVersion(major = 1, minor = 200)
setIterations(iterations: @IntRange(from = 1) Int)

Sets the number specifying how many times animation will be repeated.

AnimationParameterBuilders.Repeatable.Builder
@RequiresSchemaVersion(major = 1, minor = 200)
setRepeatMode(repeatMode: Int)

Sets the repeat mode to specify how animation will behave when repeated.

AnimationParameterBuilders.Repeatable.Builder
@RequiresSchemaVersion(major = 1, minor = 200)
setReverseRepeatOverride(
    reverseRepeatOverride: AnimationParameterBuilders.AnimationParameters
)

Sets optional custom parameters for the reverse passes of 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.Repeatable

Builds an instance from accumulated values.

setForwardRepeatOverride

Added in 1.0.0
@RequiresSchemaVersion(major = 1, minor = 200)
fun setForwardRepeatOverride(
    forwardRepeatOverride: AnimationParameterBuilders.AnimationParameters
): AnimationParameterBuilders.Repeatable.Builder

Sets optional custom parameters for the forward passes of animation. If not set, use the main animation parameters set outside of Repeatable.

setIterations

Added in 1.0.0
@RequiresSchemaVersion(major = 1, minor = 200)
fun setIterations(iterations: @IntRange(from = 1) Int): AnimationParameterBuilders.Repeatable.Builder

Sets the number specifying how many times animation will be repeated. If not set, defaults to repeating infinitely.

setRepeatMode

Added in 1.0.0
@RequiresSchemaVersion(major = 1, minor = 200)
fun setRepeatMode(repeatMode: Int): AnimationParameterBuilders.Repeatable.Builder

Sets the repeat mode to specify how animation will behave when repeated. If not set, defaults to restart.

setReverseRepeatOverride

Added in 1.0.0
@RequiresSchemaVersion(major = 1, minor = 200)
fun setReverseRepeatOverride(
    reverseRepeatOverride: AnimationParameterBuilders.AnimationParameters
): AnimationParameterBuilders.Repeatable.Builder

Sets optional custom parameters for the reverse passes of animation. If not set, use the main animation parameters set outside of Repeatable.