public final class

ModifiersBuilders.SlideOutTransition.Builder

extends java.lang.Object

 java.lang.Object

↳androidx.wear.protolayout.ModifiersBuilders.SlideOutTransition.Builder

Overview

Builder for ModifiersBuilders.SlideOutTransition

Summary

Constructors
publicBuilder()

Creates an instance of ModifiersBuilders.Clickable.Builder.

Methods
public ModifiersBuilders.SlideOutTransitionbuild()

Builds an instance from accumulated values.

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

Sets the animation parameters for duration, delay, etc.

public ModifiersBuilders.SlideOutTransition.BuildersetDirection(int direction)

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

public ModifiersBuilders.SlideOutTransition.BuildersetTargetSlideBound(ModifiersBuilders.SlideBound targetSlideBound)

Sets the target 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.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.

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.

Sets the animation parameters for duration, delay, etc.

Builds an instance from accumulated values.