ModifiersBuilders.DefaultContentTransitions


@ProtoLayoutExperimental
class ModifiersBuilders.DefaultContentTransitions


Prebuilt default objects for animated visibility transition animations.

Summary

Public functions

java-static ModifiersBuilders.EnterTransition
@RequiresSchemaVersion(major = 1, minor = 200)
fadeIn()

Enter content transition animation that fades in element when entering the layout, from fully invisible to fully visible.

java-static ModifiersBuilders.EnterTransition
@RequiresSchemaVersion(major = 1, minor = 200)
fadeInSlideIn(slideDirection: Int)

Enter content transition animation that fades in element when entering the layout, from fully invisible to fully visible and slides it in into its position from the parent edge in the given direction.

java-static ModifiersBuilders.ExitTransition
@RequiresSchemaVersion(major = 1, minor = 200)
fadeOut()

Exit content transition animation that fades out element when exiting the layout, from fully visible to fully invisible.

java-static ModifiersBuilders.ExitTransition
@RequiresSchemaVersion(major = 1, minor = 200)
fadeOutSlideOut(slideDirection: Int)

Exit content transition animation that fades out element when exiting the layout, from fully visible to fully invisible and slides it out from its position to the parent edge in the given direction.

java-static ModifiersBuilders.EnterTransition
@RequiresSchemaVersion(major = 1, minor = 200)
slideIn(slideDirection: Int)

Enter content transition animation that slides in element when entering the layout into its position from the parent edge in the given direction.

java-static ModifiersBuilders.ExitTransition
@RequiresSchemaVersion(major = 1, minor = 200)
slideOut(slideDirection: Int)

Exit content transition animation that slides out element when exiting the layout from its position to the parent edge in the given direction.

Public functions

fadeIn

Added in 1.0.0
@RequiresSchemaVersion(major = 1, minor = 200)
java-static fun fadeIn(): ModifiersBuilders.EnterTransition

Enter content transition animation that fades in element when entering the layout, from fully invisible to fully visible.

fadeInSlideIn

Added in 1.0.0
@RequiresSchemaVersion(major = 1, minor = 200)
java-static fun fadeInSlideIn(slideDirection: Int): ModifiersBuilders.EnterTransition

Enter content transition animation that fades in element when entering the layout, from fully invisible to fully visible and slides it in into its position from the parent edge in the given direction.

Parameters
slideDirection: Int

The direction for sliding in part of transition.

fadeOut

Added in 1.0.0
@RequiresSchemaVersion(major = 1, minor = 200)
java-static fun fadeOut(): ModifiersBuilders.ExitTransition

Exit content transition animation that fades out element when exiting the layout, from fully visible to fully invisible.

fadeOutSlideOut

Added in 1.0.0
@RequiresSchemaVersion(major = 1, minor = 200)
java-static fun fadeOutSlideOut(slideDirection: Int): ModifiersBuilders.ExitTransition

Exit content transition animation that fades out element when exiting the layout, from fully visible to fully invisible and slides it out from its position to the parent edge in the given direction.

Parameters
slideDirection: Int

The direction for sliding in part of transition.

slideIn

Added in 1.0.0
@RequiresSchemaVersion(major = 1, minor = 200)
java-static fun slideIn(slideDirection: Int): ModifiersBuilders.EnterTransition

Enter content transition animation that slides in element when entering the layout into its position from the parent edge in the given direction.

slideOut

Added in 1.0.0
@RequiresSchemaVersion(major = 1, minor = 200)
java-static fun slideOut(slideDirection: Int): ModifiersBuilders.ExitTransition

Exit content transition animation that slides out element when exiting the layout from its position to the parent edge in the given direction.