ModifiersBuilders.SlideOutTransition.Builder


public final class ModifiersBuilders.SlideOutTransition.Builder


Builder for SlideOutTransition

Summary

Public constructors

Creates an instance of Builder.

Public methods

@NonNull ModifiersBuilders.SlideOutTransition

Builds an instance from accumulated values.

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

Sets the animation parameters for duration, delay, etc.

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

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

@NonNull ModifiersBuilders.SlideOutTransition.Builder

Sets the target offset for animation.

Public constructors

Builder

Added in 1.0.0
public Builder()

Creates an instance of Builder.

Public methods

build

Added in 1.0.0
public @NonNull ModifiersBuilders.SlideOutTransition build()

Builds an instance from accumulated values.

setAnimationSpec

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

Sets the animation parameters for duration, delay, etc.

setDirection

Added in 1.0.0
@RequiresSchemaVersion(major = 1, minor = 200)
public @NonNull ModifiersBuilders.SlideOutTransition.Builder setDirection(int direction)

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
public @NonNull ModifiersBuilders.SlideOutTransition.Builder setTargetSlideBound(
    @NonNull ModifiersBuilders.SlideBound targetSlideBound
)

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.