# ModifiersBuilders.SlideInTransition

Artifact: [androidx.wear.protolayout:protolayout](https://developer.android.com/jetpack/androidx/releases/wear-protolayout) [View Source](https://cs.android.com/search?q=file:androidx/wear/protolayout/ModifiersBuilders.java+class:androidx.wear.protolayout.ModifiersBuilders.SlideInTransition) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/wear-protolayout#1.0.0)

*** ** * ** ***


```
@RequiresSchemaVersion(major = 1, minor = 200)
@ProtoLayoutExperimental
public final class ModifiersBuilders.SlideInTransition
```

<br />

*** ** * ** ***

The sliding in animation for content transition of an element and its children.

## Summary

| ### Nested types |
|---|
| `public final class https://developer.android.com/reference/androidx/wear/protolayout/ModifiersBuilders.SlideInTransition.Builder` Builder for `https://developer.android.com/reference/androidx/wear/protolayout/ModifiersBuilders.SlideInTransition` |

| ### Public methods |
|---|---|
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/Nullable.html https://developer.android.com/reference/androidx/wear/protolayout/expression/AnimationParameterBuilders.AnimationSpec` | `https://developer.android.com/reference/androidx/wear/protolayout/ModifiersBuilders.SlideInTransition#getAnimationSpec()()` Gets the animation parameters for duration, delay, etc. |
| `int` | `https://developer.android.com/reference/androidx/wear/protolayout/ModifiersBuilders.SlideInTransition#getDirection()()` Gets the slide direction used for slide animations on any element, from the specified point to its destination in the layout. |
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/Nullable.html https://developer.android.com/reference/androidx/wear/protolayout/ModifiersBuilders.SlideBound` | `https://developer.android.com/reference/androidx/wear/protolayout/ModifiersBuilders.SlideInTransition#getInitialSlideBound()()` Gets the initial offset for animation. |
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/wear/protolayout/ModifiersBuilders.SlideInTransition#toString()()` |

## Public methods

### getAnimationSpec

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/wear-protolayout#1.0.0)

```
public @Nullable AnimationParameterBuilders.AnimationSpec getAnimationSpec()
```

Gets the animation parameters for duration, delay, etc.

### getDirection

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/wear-protolayout#1.0.0)

```
public int getDirection()
```

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

### getInitialSlideBound

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/wear-protolayout#1.0.0)

```
public @Nullable ModifiersBuilders.SlideBound getInitialSlideBound()
```

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

### toString

```
public @NonNull String toString()
```