reset

fun reset(key: Any)

Allows key to animate again the next time it enters composition.

This does not restart or otherwise affect a currently attached animation.

Parameters

key

The item key to remove from this state's entered-key history.


fun reset()

Allows all keys to animate again the next time they enter composition.

This does not restart or otherwise affect currently attached animations. Entrances following a reset use LazyGridItemEntranceScrollContext.InitialLayout until the grid starts scrolling again, regardless of the direction of the preceding scroll.