Segment

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.

Properties

Link copied to clipboard
abstract val initialState: S

Initial state of a Transition Segment. This is the state that transition starts from.

Link copied to clipboard
abstract val targetState: S

Target state of a Transition Segment. This is the state that transition will end on.

Functions

Link copied to clipboard
open infix fun S.isTransitioningTo(targetState: S): Boolean

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