ModifiersBuilders.SlideOutTransition.Builder


class ModifiersBuilders.SlideOutTransition.Builder


Builder for SlideOutTransition

Summary

Public constructors

Creates an instance of Builder.

Public functions

ModifiersBuilders.SlideOutTransition

Builds an instance from accumulated values.

ModifiersBuilders.SlideOutTransition.Builder
@RequiresSchemaVersion(major = 1, minor = 200)
setAnimationSpec(
    animationSpec: AnimationParameterBuilders.AnimationSpec
)

Sets the animation parameters for duration, delay, etc.

ModifiersBuilders.SlideOutTransition.Builder
@RequiresSchemaVersion(major = 1, minor = 200)
setDirection(direction: Int)

Sets the slide direction used for slide animations on any element, from its destination in the layout to the specified point.

ModifiersBuilders.SlideOutTransition.Builder

Sets the target offset for animation.

Public constructors

Builder

Added in 1.0.0
Builder()

Creates an instance of Builder.

Public functions

build

Added in 1.0.0
fun build(): ModifiersBuilders.SlideOutTransition

Builds an instance from accumulated values.

setAnimationSpec

Added in 1.0.0
@RequiresSchemaVersion(major = 1, minor = 200)
fun setAnimationSpec(
    animationSpec: AnimationParameterBuilders.AnimationSpec
): ModifiersBuilders.SlideOutTransition.Builder

Sets the animation parameters for duration, delay, etc.

setDirection

Added in 1.0.0
@RequiresSchemaVersion(major = 1, minor = 200)
fun setDirection(direction: Int): ModifiersBuilders.SlideOutTransition.Builder

Sets the slide direction used for slide animations on any element, from its destination in the layout to the specified point. If not set, defaults to horizontal from right to the left.

setTargetSlideBound

Added in 1.0.0
fun setTargetSlideBound(targetSlideBound: ModifiersBuilders.SlideBound): ModifiersBuilders.SlideOutTransition.Builder

Sets the target offset for animation. By default the transition will end at the left parent boundary for horizontal orientation and at the top for vertical orientation. Note that sliding from the screen boundaries can only be achieved if all parent's sizes are big enough to accommodate it.