ToolkitIconReplayMode

How a ToolkitIcon.AnimatedVector behaves when its item is clicked again while the drawable already rests on the last frame of the animation.

This is the shape of a single replay, not how many replays happen. It stays meaningful for an animation that declares ToolkitIcon.Animated.loop, where it describes each cycle of the loop rather than each click.

Entries

Link copied to clipboard

Play the animation forward again from its first frame. This is the default and fits the usual looping icon whose last frame is drawn like its first one, so the reset is invisible and every click looks like the same animation.

Link copied to clipboard

Play the animation backwards, from the last frame to the first one. Use it for drawables that genuinely morph between two different shapes and should visibly travel back, such as a play/pause or menu/close toggle.

Companion properties

Link copied to clipboard

Returns an immutable kotlin.enums.EnumEntries list containing the constants of this enum type, in the order they're declared.

Companion functions

Link copied to clipboard

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.)

Link copied to clipboard

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

Properties

Link copied to clipboard
Link copied to clipboard