androidx.compose.material3.adaptive.layout

calculateDefaultExitTransitionSince 1.1Experimental

Function · from org.jetbrains.compose.material3.adaptive:adaptive-layout:1.3.0

No hand-written docs yet.

Calculates the default ExitTransition of the pane associated to the given role when it's hiding. The PaneMotion and pane measurement data provided by PaneScaffoldMotionDataProvider will be used to decide the transition type and relevant values like sliding offsets.

ParametersExperimental

fun <Role : PaneScaffoldRole> PaneScaffoldMotionDataProvider<Role>.calculateDefaultExitTransition(role: Role)

role: RoleRequired

the role of the pane that is supposed to perform the ExitTransition when hiding.

Library docs

Calculates the default ExitTransition of the pane associated to the given role when it's hiding. The PaneMotion and pane measurement data provided by PaneScaffoldMotionDataProvider will be used to decide the transition type and relevant values like sliding offsets.