Transition.Segment

Known direct subclasses
AnimatedContentTransitionScope

AnimatedContentTransitionScope provides functions that are convenient and only applicable in the context of AnimatedContent, such as slideIntoContainer and slideOutOfContainer.


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.

Summary

Public functions

open infix Boolean
S.isTransitioningTo(targetState: S)

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

Cmn

Public properties

S

Initial state of a Transition Segment.

Cmn
S

Target state of a Transition Segment.

Cmn

Public functions

isTransitioningTo

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

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

Public properties

initialState

val initialState: S

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

targetState

val targetState: S

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