# ModifiersBuilders.SlideParentBound

# ModifiersBuilders.SlideParentBound

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.SlideParentBound)  
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.SlideParentBound "View this page in Java")

<br />

```
@RequiresSchemaVersion(major = 1, minor = 200)
@ProtoLayoutExperimental
class ModifiersBuilders.SlideParentBound : ModifiersBuilders.SlideBound
```

<br />

*** ** * ** ***

The slide animation will animate from/to the parent elements boundaries.

## Summary

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

|                               ### Public functions                                |
|-----------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)       | [getSnapTo](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/ModifiersBuilders.SlideParentBound#getSnapTo())`()` Gets the snap options to use when sliding using parent boundaries. |
| [String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html) | [toString](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/ModifiersBuilders.SlideParentBound#toString())`()`                                                                      |

## Public functions

### getSnapTo

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

```
fun getSnapTo(): Int
```

Gets the snap options to use when sliding using parent boundaries. Defaults to SLIDE_PARENT_SNAP_TO_INSIDE if not specified.  

### toString

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