Package-level declarations

Functions

Link copied to clipboard
fun holdIn(durationMillis: Int = MotionConstants.DefaultMotionDuration): EnterTransition

holdIn allows to switch a layout with no enter transition.

Link copied to clipboard
fun holdOut(durationMillis: Int = MotionConstants.DefaultMotionDuration): ExitTransition

holdOut allows to switch a layout with no exit transition.

Link copied to clipboard
fun materialElevationScaleIn(initialAlpha: Float = 0.85f, initialScale: Float = 0.85f, durationMillis: Int = MotionConstants.DefaultMotionDuration): EnterTransition

materialElevationScaleIn allows to switch a layout with elevation scale enter transition.

Link copied to clipboard
fun materialElevationScaleOut(targetAlpha: Float = 0.85f, targetScale: Float = 0.85f, durationMillis: Int = MotionConstants.DefaultMotionDuration): ExitTransition

materialElevationScaleOut allows to switch a layout with elevation scale exit transition.

Link copied to clipboard
fun materialFadeIn(durationMillis: Int = MotionConstants.DefaultFadeInDuration): EnterTransition

materialFadeIn allows to switch a layout with a fade-in animation.

Link copied to clipboard
fun materialFadeOut(durationMillis: Int = MotionConstants.DefaultFadeOutDuration): ExitTransition

materialFadeOut allows to switch a layout with a fade-out animation.

Link copied to clipboard
fun materialFadeThrough(durationMillis: Int = MotionConstants.DefaultMotionDuration): ContentTransform

materialFadeThrough allows to switch a layout with a fade through animation.

Link copied to clipboard
fun materialFadeThroughIn(initialScale: Float = 0.92f, durationMillis: Int = MotionConstants.DefaultMotionDuration): EnterTransition

materialFadeThroughIn allows to switch a layout with fade through enter transition.

Link copied to clipboard
fun materialFadeThroughOut(durationMillis: Int = MotionConstants.DefaultMotionDuration): ExitTransition

materialFadeThroughOut allows to switch a layout with fade through exit transition.

Link copied to clipboard
fun materialSharedAxisX(forward: Boolean, slideDistance: Int, durationMillis: Int = MotionConstants.DefaultMotionDuration): ContentTransform

materialSharedAxisX allows to switch a layout with shared X-axis transition.

Link copied to clipboard
fun materialSharedAxisXIn(forward: Boolean, slideDistance: Int, durationMillis: Int = MotionConstants.DefaultMotionDuration): EnterTransition

materialSharedAxisXIn allows to switch a layout with shared X-axis enter transition.

Link copied to clipboard
fun materialSharedAxisXOut(forward: Boolean, slideDistance: Int, durationMillis: Int = MotionConstants.DefaultMotionDuration): ExitTransition

materialSharedAxisXOut allows to switch a layout with shared X-axis exit transition.

Link copied to clipboard
fun materialSharedAxisY(forward: Boolean, slideDistance: Int, durationMillis: Int = MotionConstants.DefaultMotionDuration): ContentTransform

materialSharedAxisY allows to switch a layout with shared Y-axis transition.

Link copied to clipboard
fun materialSharedAxisYIn(forward: Boolean, slideDistance: Int, durationMillis: Int = MotionConstants.DefaultMotionDuration): EnterTransition

materialSharedAxisYIn allows to switch a layout with shared Y-axis enter transition.

Link copied to clipboard
fun materialSharedAxisYOut(forward: Boolean, slideDistance: Int, durationMillis: Int = MotionConstants.DefaultMotionDuration): ExitTransition

materialSharedAxisYOut allows to switch a layout with shared Y-axis exit transition.

Link copied to clipboard
fun materialSharedAxisZ(forward: Boolean, durationMillis: Int = MotionConstants.DefaultMotionDuration): ContentTransform

materialSharedAxisZ allows to switch a layout with shared Z-axis transition.

Link copied to clipboard
fun materialSharedAxisZIn(forward: Boolean, durationMillis: Int = MotionConstants.DefaultMotionDuration): EnterTransition

materialSharedAxisZIn allows to switch a layout with shared Z-axis enter transition.

Link copied to clipboard
fun materialSharedAxisZOut(forward: Boolean, durationMillis: Int = MotionConstants.DefaultMotionDuration): ExitTransition

materialSharedAxisZOut allows to switch a layout with shared Z-axis exit transition.

Link copied to clipboard
fun rememberSlideDistance(slideDistance: Dp = MotionConstants.DefaultSlideDistance): Int

Returns the provided Dp as an Int value by the LocalDensity.

Link copied to clipboard
fun translateXIn(durationMillis: Int = MotionConstants.DefaultMotionDuration, initialOffsetX: (fullHeight: Int) -> Int = { -it / 2 }): EnterTransition

translateXIn allows to switch a layout with a translate animation as x axis.

Link copied to clipboard
fun translateXOut(durationMillis: Int = MotionConstants.DefaultMotionDuration, targetOffsetX: (fullHeight: Int) -> Int = { -it / 2 }): ExitTransition

translateXOut allows to switch a layout with a translate animation as x axis.

Link copied to clipboard
fun translateYIn(durationMillis: Int = MotionConstants.DefaultMotionDuration, initialOffsetY: (fullHeight: Int) -> Int = { -it / 2 }): EnterTransition

translateYIn allows to switch a layout with a translate animation as y axis.

Link copied to clipboard
fun translateYOut(durationMillis: Int = MotionConstants.DefaultMotionDuration, targetOffsetY: (fullHeight: Int) -> Int = { -it / 2 }): ExitTransition

translateYOut allows to switch a layout with a translate animation as y axis.