AnimationParameterBuilders.Repeatable.Builder


public final class AnimationParameterBuilders.Repeatable.Builder


Builder for Repeatable

Summary

Public constructors

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

Public methods

@NonNull AnimationParameterBuilders.Repeatable

Builds an instance from accumulated values.

@NonNull AnimationParameterBuilders.Repeatable.Builder

Sets optional custom parameters for the forward passes of animation.

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

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

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

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

@NonNull AnimationParameterBuilders.Repeatable.Builder

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

Builds an instance from accumulated values.

setForwardRepeatOverride

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

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)
public @NonNull AnimationParameterBuilders.Repeatable.Builder setIterations(@IntRange(from = 1) int iterations)

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)
public @NonNull AnimationParameterBuilders.Repeatable.Builder setRepeatMode(int repeatMode)

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)
public @NonNull AnimationParameterBuilders.Repeatable.Builder setReverseRepeatOverride(
    @NonNull AnimationParameterBuilders.AnimationParameters reverseRepeatOverride
)

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