AnimatedContentTransitionScope
The receiver of an AnimatedContent's transitionSpec: a segment of the container's transition, plus slides into and out of the container's edges, which need the container's size.
AnimatedContent(
targetState = page,
transitionSpec = {
slideIntoContainer(SlideDirection.Left) togetherWith slideOutOfContainer(SlideDirection.Left)
},
) { Page(it) }Types
Which way content travels in slideIntoContainer and out in slideOutOfContainer.
Properties
Where the container places content inside itself; the AnimatedContent's own parameter.
Initial state of a Transition Segment. This is the state that transition starts from.
An exit transition that keeps the old content composed until the whole transition has finished, instead of removing it when its own exit ends.
Target state of a Transition Segment. This is the state that transition will end on.
Functions
Returns whether the provided state matches the initialState&& the provided targetState matches Segment.targetState.
Slides the arriving content in from the container's edge, traveling towards.
Slides the old content out to the container's edge, traveling towards.
Replaces the SizeTransform of this content transform. using null turns off the size animation.