AnimationParameterBuilders.Repeatable


@RequiresSchemaVersion(major = 1, minor = 200)
public final class AnimationParameterBuilders.Repeatable


The repeatable mode to be used for specifying how many times animation will be repeated.

Summary

Nested types

Builder for Repeatable

Constants

static final AnimationParameterBuilders.Repeatable

An infinite Repeatable where animation restarts from the beginning when repeated.

static final AnimationParameterBuilders.Repeatable

An infinite Repeatable where animation is played in reverse when repeated.

Public methods

@Nullable AnimationParameterBuilders.AnimationParameters

Gets optional custom parameters for the forward passes of animation.

int

Gets the number specifying how many times animation will be repeated. this method can only be called if hasInfiniteIteration is false.

int

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

@Nullable AnimationParameterBuilders.AnimationParameters

Gets optional custom parameters for the reverse passes of animation.

boolean

Returns true if the animation has indefinite repeat.

@NonNull String

Constants

INFINITE_REPEATABLE_WITH_RESTART

Added in 1.0.0
@RequiresSchemaVersion(major = 1, minor = 200)
public static final AnimationParameterBuilders.Repeatable INFINITE_REPEATABLE_WITH_RESTART

An infinite Repeatable where animation restarts from the beginning when repeated.

INFINITE_REPEATABLE_WITH_REVERSE

Added in 1.0.0
@RequiresSchemaVersion(major = 1, minor = 200)
public static final AnimationParameterBuilders.Repeatable INFINITE_REPEATABLE_WITH_REVERSE

An infinite Repeatable where animation is played in reverse when repeated.

Public methods

getForwardRepeatOverride

Added in 1.0.0
public @Nullable AnimationParameterBuilders.AnimationParameters getForwardRepeatOverride()

Gets optional custom parameters for the forward passes of animation.

getIterations

Added in 1.0.0
public int getIterations()

Gets the number specifying how many times animation will be repeated. this method can only be called if hasInfiniteIteration is false.

getRepeatMode

Added in 1.0.0
public int getRepeatMode()

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

getReverseRepeatOverride

Added in 1.0.0
public @Nullable AnimationParameterBuilders.AnimationParameters getReverseRepeatOverride()

Gets optional custom parameters for the reverse passes of animation.

hasInfiniteIteration

Added in 1.0.0
public boolean hasInfiniteIteration()

Returns true if the animation has indefinite repeat.

toString

public @NonNull String toString()