{% setvar book_path %}/reference/androidx/_book.yaml{% endsetvar %} {% include "_shared/_reference-head-tags.html" %}

RepeatMode

public enum RepeatMode extends Enum

java.lang.Object
   ↳ kotlin.Enum
     ↳ androidx.compose.animation.core.RepeatMode

Repeat mode for RepeatableSpec and VectorizedRepeatableSpec.

Summary

Enum Values

Restart

Restart will restart the animation and animate from the start value to the end value.

Reverse

Reverse will reverse the last iteration as the animation repeats.

Public methods

final @NonNull EnumEntries<@NonNull RepeatMode>

Repeat mode for RepeatableSpec and VectorizedRepeatableSpec.

final @NonNull RepeatMode

Returns the enum constant of this type with the specified name.

final @NonNull RepeatMode[]

Returns an array containing the constants of this enum type, in the order they're declared.

Enum Values

Restart

RepeatMode RepeatMode.Restart

Restart will restart the animation and animate from the start value to the end value.

Reverse

RepeatMode RepeatMode.Reverse

Reverse will reverse the last iteration as the animation repeats.

Public methods

getEntries

public final @NonNull EnumEntries<@NonNull RepeatModegetEntries()

Repeat mode for RepeatableSpec and VectorizedRepeatableSpec.

valueOf

public final @NonNull RepeatMode valueOf(@NonNull String value)

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Throws
kotlin.IllegalArgumentException

if this enum type has no constant with the specified name

values

public final @NonNull RepeatMode[] values()

Returns an array containing the constants of this enum type, in the order they're declared.

This method may be used to iterate over the constants.