public final class

ModifiersBuilders.SlideInTransition.Builder

extends java.lang.Object

 java.lang.Object

↳androidx.wear.protolayout.ModifiersBuilders.SlideInTransition.Builder

Overview

Builder for ModifiersBuilders.SlideInTransition

Summary

Constructors
publicBuilder()

Creates an instance of ModifiersBuilders.Clickable.Builder.

Methods
public ModifiersBuilders.SlideInTransitionbuild()

Builds an instance from accumulated values.

public ModifiersBuilders.SlideInTransition.BuildersetAnimationSpec(AnimationParameterBuilders.AnimationSpec animationSpec)

Sets the animation parameters for duration, delay, etc.

public ModifiersBuilders.SlideInTransition.BuildersetDirection(int direction)

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

public ModifiersBuilders.SlideInTransition.BuildersetInitialSlideBound(ModifiersBuilders.SlideBound initialSlideBound)

Sets the initial offset for animation.

from java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructors

public Builder()

Creates an instance of ModifiersBuilders.Clickable.Builder.

Methods

public 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.

public ModifiersBuilders.SlideInTransition.Builder setInitialSlideBound(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.

Sets the animation parameters for duration, delay, etc.

Builds an instance from accumulated values.