ModifiersBuilders.SlideInTransition.Builder


class ModifiersBuilders.SlideInTransition.Builder


Builder for SlideInTransition

Summary

Public constructors

Creates an instance of Builder.

Public functions

ModifiersBuilders.SlideInTransition

Builds an instance from accumulated values.

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

Sets the animation parameters for duration, delay, etc.

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

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

ModifiersBuilders.SlideInTransition.Builder
@RequiresSchemaVersion(major = 1, minor = 200)
setInitialSlideBound(initialSlideBound: ModifiersBuilders.SlideBound)

Sets the initial 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.SlideInTransition

Builds an instance from accumulated values.

setAnimationSpec

Added in 1.0.0
@RequiresSchemaVersion(major = 1, minor = 200)
fun setAnimationSpec(
    animationSpec: AnimationParameterBuilders.AnimationSpec
): ModifiersBuilders.SlideInTransition.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.SlideInTransition.Builder

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

setInitialSlideBound

Added in 1.0.0
@RequiresSchemaVersion(major = 1, minor = 200)
fun setInitialSlideBound(initialSlideBound: ModifiersBuilders.SlideBound): ModifiersBuilders.SlideInTransition.Builder

Sets the initial offset for animation. By default the transition starts from the left parent boundary for horizontal orientation and from 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.