ModifiersBuilders.SlideInTransition.Builder


public final class ModifiersBuilders.SlideInTransition.Builder


Builder for SlideInTransition

Summary

Public constructors

Creates an instance of Builder.

Public methods

@NonNull ModifiersBuilders.SlideInTransition

Builds an instance from accumulated values.

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

Sets the animation parameters for duration, delay, etc.

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

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

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

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

Builds an instance from accumulated values.

setAnimationSpec

Added in 1.0.0
@RequiresSchemaVersion(major = 1, minor = 200)
public @NonNull ModifiersBuilders.SlideInTransition.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.SlideInTransition.Builder setDirection(int direction)

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)
public @NonNull ModifiersBuilders.SlideInTransition.Builder setInitialSlideBound(
    @NonNull ModifiersBuilders.SlideBound initialSlideBound
)

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.