Class

MutableTransitionState

MutableTransitionState contains two fields: currentState and targetState.

Source set: Common

Added in 1.11.0-rc01

public class MutableTransitionState<S>(initialState: S) : TransitionState<S>()

MutableTransitionState contains two fields: currentState and targetState. currentState is initialized to the provided initialState, and can only be mutated by a Transition. targetState is also initialized to initialState. It can be mutated to alter the course of a transition animation that is created with the MutableTransitionState using rememberTransition. Both currentState and targetState are backed by a State object.

Properties

isIdle

Source set: Common

Added in 1.11.0-rc01

public val isIdle: Boolean

isIdle returns whether the transition has finished running. This will return false once the targetState has been set to a different value than currentState.