# 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)

*** ** * ** ***


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

<br />

*** ** * ** ***

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

## Summary

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

| ### Public methods |
|---|---|
| `int` | `https://developer.android.com/reference/androidx/wear/protolayout/ModifiersBuilders.SlideParentBound#getSnapTo()()` Gets the snap options to use when sliding using parent boundaries. |
| `@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.SlideParentBound#toString()()` |

## Public methods

### getSnapTo

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

```
public int getSnapTo()
```

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

### toString

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