# ModifiersBuilders.SlideOutTransition

# ModifiersBuilders.SlideOutTransition

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.SlideOutTransition)  
Added in[1.0.0](https://developer.android.com/jetpack/androidx/releases/wear-protolayout#1.0.0)

*** ** * ** ***

Kotlin\|[Java](https://developer.android.com/reference/androidx/wear/protolayout/ModifiersBuilders.SlideOutTransition "View this page in Java")

<br />

```
@RequiresSchemaVersion(major = 1, minor = 200)
@ProtoLayoutExperimental
class ModifiersBuilders.SlideOutTransition
```

<br />

*** ** * ** ***

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

## Summary

|                                                                                                                                                       ### Nested types                                                                                                                                                       |
|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `class `[ModifiersBuilders.SlideOutTransition.Builder](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/ModifiersBuilders.SlideOutTransition.Builder) Builder for[SlideOutTransition](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/ModifiersBuilders.SlideOutTransition) |

|                                                                            ### Public functions                                                                             |
|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [AnimationParameterBuilders.AnimationSpec](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/expression/AnimationParameterBuilders.AnimationSpec)`?` | [getAnimationSpec](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/ModifiersBuilders.SlideOutTransition#getAnimationSpec())`()` Gets the animation parameters for duration, delay, etc.                                                               |
| [Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)                                                                                                 | [getDirection](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/ModifiersBuilders.SlideOutTransition#getDirection())`()` Gets the slide direction used for slide animations on any element, from its destination in the layout to the specified point. |
| [ModifiersBuilders.SlideBound](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/ModifiersBuilders.SlideBound)`?`                                    | [getTargetSlideBound](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/ModifiersBuilders.SlideOutTransition#getTargetSlideBound())`()` Gets the target offset for animation.                                                                           |
| [String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)                                                                                           | [toString](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/ModifiersBuilders.SlideOutTransition#toString())`()`                                                                                                                                       |

## Public functions

### getAnimationSpec

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

```
fun getAnimationSpec(): AnimationParameterBuilders.AnimationSpec?
```

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)  

```
fun getDirection(): Int
```

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

### getTargetSlideBound

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

```
fun getTargetSlideBound(): ModifiersBuilders.SlideBound?
```

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

### toString

```
fun toString(): String
```