Function

calculateDefaultExitTransition

Calculates the default ExitTransition of the pane associated to the given role when it's hiding.

calculateDefaultExitTransition

Source set: Common
public fun <Role : PaneScaffoldRole> PaneScaffoldMotionDataProvider<Role>
    .calculateDefaultExitTransition(role: Role): ExitTransition

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.

Parameters

role the role of the pane that is supposed to perform the ExitTransition when hiding.
Jetpack Compose beyond MaterialFree components, screens and templates for apps that don’t look like Google’s. Copy them into your app, or let your coding agent add them.Browse for free

Content updated: