Interface

Transition.Segment

Segment holds initialState and targetState, which are the beginning and end of a transition.

Common
@JvmDefaultWithCompatibility
    public interface Segment<S>

Segment holds initialState and targetState, which are the beginning and end of a transition. These states will be used to obtain the animation spec that will be used for this transition from the child animations.

Functions

isTransitioningTo

public infix fun S.isTransitioningTo(targetState: S): Boolean

Returns whether the provided state matches the initialState && the provided targetState matches Segment.targetState.