# ModifiersBuilders

# ModifiersBuilders

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

<br />

```
class ModifiersBuilders
```

<br />

*** ** * ** ***

Builders for modifiers for composable layout elements.

## Summary

|                                                                                                                                                                                                                                                                                                                                    ### Nested types                                                                                                                                                                                                                                                                                                                                    |
|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `@`[RequiresSchemaVersion](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/expression/RequiresSchemaVersion)`(major = 1, minor = 200)` `@`[ProtoLayoutExperimental](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/expression/ProtoLayoutExperimental) `class `[ModifiersBuilders.AnimatedVisibility](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/ModifiersBuilders.AnimatedVisibility) The content transition of an element.                                                                                                                                                                          |
| `class `[ModifiersBuilders.AnimatedVisibility.Builder](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/ModifiersBuilders.AnimatedVisibility.Builder) Builder for[AnimatedVisibility](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/ModifiersBuilders.AnimatedVisibility)                                                                                                                                                                                                                                                                                                                                                           |
| `@`[RequiresSchemaVersion](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/expression/RequiresSchemaVersion)`(major = 1, minor = 0)` `class `[ModifiersBuilders.ArcModifiers](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/ModifiersBuilders.ArcModifiers) [Modifiers](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/ModifiersBuilders.Modifiers)that can be used with ArcLayoutElements.                                                                                                                                                                                                              |
| `class `[ModifiersBuilders.ArcModifiers.Builder](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/ModifiersBuilders.ArcModifiers.Builder) Builder for[ArcModifiers](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/ModifiersBuilders.ArcModifiers)                                                                                                                                                                                                                                                                                                                                                                                   |
| `@`[RequiresSchemaVersion](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/expression/RequiresSchemaVersion)`(major = 1, minor = 0)` `class `[ModifiersBuilders.Background](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/ModifiersBuilders.Background) A modifier to apply a background to an element.                                                                                                                                                                                                                                                                                                                            |
| `class `[ModifiersBuilders.Background.Builder](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/ModifiersBuilders.Background.Builder) Builder for[Background](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/ModifiersBuilders.Background)                                                                                                                                                                                                                                                                                                                                                                                           |
| `@`[RequiresSchemaVersion](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/expression/RequiresSchemaVersion)`(major = 1, minor = 0)` `class `[ModifiersBuilders.Border](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/ModifiersBuilders.Border) A modifier to apply a border around an element.                                                                                                                                                                                                                                                                                                                                    |
| `class `[ModifiersBuilders.Border.Builder](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/ModifiersBuilders.Border.Builder) Builder for[Border](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/ModifiersBuilders.Border)                                                                                                                                                                                                                                                                                                                                                                                                           |
| `@`[RequiresSchemaVersion](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/expression/RequiresSchemaVersion)`(major = 1, minor = 0)` `class `[ModifiersBuilders.Clickable](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/ModifiersBuilders.Clickable) A modifier for an element which can have associated Actions for click events.                                                                                                                                                                                                                                                                                                |
| `class `[ModifiersBuilders.Clickable.Builder](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/ModifiersBuilders.Clickable.Builder) Builder for[Clickable](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/ModifiersBuilders.Clickable)                                                                                                                                                                                                                                                                                                                                                                                               |
| `@`[RequiresSchemaVersion](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/expression/RequiresSchemaVersion)`(major = 1, minor = 0)` `class `[ModifiersBuilders.Corner](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/ModifiersBuilders.Corner) The corner of a[androidx.wear.protolayout.LayoutElementBuilders.Box](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.Box)element.                                                                                                                                                                                                   |
| `class `[ModifiersBuilders.Corner.Builder](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/ModifiersBuilders.Corner.Builder) Builder for[Corner](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/ModifiersBuilders.Corner)                                                                                                                                                                                                                                                                                                                                                                                                           |
| `@`[RequiresSchemaVersion](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/expression/RequiresSchemaVersion)`(major = 1, minor = 400)` `class `[ModifiersBuilders.CornerRadius](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/ModifiersBuilders.CornerRadius) A radius for either circular or elliptical shapes.                                                                                                                                                                                                                                                                                                                   |
| `class `[ModifiersBuilders.CornerRadius.Builder](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/ModifiersBuilders.CornerRadius.Builder) Builder for[CornerRadius](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/ModifiersBuilders.CornerRadius)                                                                                                                                                                                                                                                                                                                                                                                   |
| `@`[ProtoLayoutExperimental](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/expression/ProtoLayoutExperimental) `class `[ModifiersBuilders.DefaultContentTransitions](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/ModifiersBuilders.DefaultContentTransitions) Prebuilt default objects for animated visibility transition animations.                                                                                                                                                                                                                                                                                          |
| `@`[RequiresSchemaVersion](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/expression/RequiresSchemaVersion)`(major = 1, minor = 0)` `class `[ModifiersBuilders.ElementMetadata](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/ModifiersBuilders.ElementMetadata) Metadata about an element.                                                                                                                                                                                                                                                                                                                                       |
| `class `[ModifiersBuilders.ElementMetadata.Builder](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/ModifiersBuilders.ElementMetadata.Builder) Builder for[ElementMetadata](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/ModifiersBuilders.ElementMetadata)                                                                                                                                                                                                                                                                                                                                                                       |
| `@`[RequiresSchemaVersion](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/expression/RequiresSchemaVersion)`(major = 1, minor = 200)` `@`[ProtoLayoutExperimental](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/expression/ProtoLayoutExperimental) `class `[ModifiersBuilders.EnterTransition](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/ModifiersBuilders.EnterTransition) The content transition that is triggered when element enters the layout.                                                                                                                                             |
| `class `[ModifiersBuilders.EnterTransition.Builder](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/ModifiersBuilders.EnterTransition.Builder) Builder for[EnterTransition](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/ModifiersBuilders.EnterTransition)                                                                                                                                                                                                                                                                                                                                                                       |
| `@`[RequiresSchemaVersion](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/expression/RequiresSchemaVersion)`(major = 1, minor = 200)` `@`[ProtoLayoutExperimental](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/expression/ProtoLayoutExperimental) `class `[ModifiersBuilders.ExitTransition](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/ModifiersBuilders.ExitTransition) The content transition that is triggered when element exits the layout.                                                                                                                                                |
| `class `[ModifiersBuilders.ExitTransition.Builder](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/ModifiersBuilders.ExitTransition.Builder) Builder for[ExitTransition](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/ModifiersBuilders.ExitTransition)                                                                                                                                                                                                                                                                                                                                                                           |
| `@`[RequiresSchemaVersion](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/expression/RequiresSchemaVersion)`(major = 1, minor = 200)` `@`[ProtoLayoutExperimental](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/expression/ProtoLayoutExperimental) `class `[ModifiersBuilders.FadeInTransition](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/ModifiersBuilders.FadeInTransition) The fading animation for content transition of an element and its children, from the specified starting alpha to fully visible.                                                                                    |
| `class `[ModifiersBuilders.FadeInTransition.Builder](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/ModifiersBuilders.FadeInTransition.Builder) Builder for[FadeInTransition](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/ModifiersBuilders.FadeInTransition)                                                                                                                                                                                                                                                                                                                                                                   |
| `@`[RequiresSchemaVersion](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/expression/RequiresSchemaVersion)`(major = 1, minor = 200)` `@`[ProtoLayoutExperimental](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/expression/ProtoLayoutExperimental) `class `[ModifiersBuilders.FadeOutTransition](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/ModifiersBuilders.FadeOutTransition) The fading animation for content transition of an element and its children, from fully visible to the specified target alpha.                                                                                    |
| `class `[ModifiersBuilders.FadeOutTransition.Builder](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/ModifiersBuilders.FadeOutTransition.Builder) Builder for[FadeOutTransition](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/ModifiersBuilders.FadeOutTransition)                                                                                                                                                                                                                                                                                                                                                               |
| `@`[RequiresSchemaVersion](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/expression/RequiresSchemaVersion)`(major = 1, minor = 0)` `class `[ModifiersBuilders.Modifiers](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/ModifiersBuilders.Modifiers) [Modifiers](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/ModifiersBuilders.Modifiers)for an element.                                                                                                                                                                                                                                             |
| `class `[ModifiersBuilders.Modifiers.Builder](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/ModifiersBuilders.Modifiers.Builder) Builder for[Modifiers](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/ModifiersBuilders.Modifiers)                                                                                                                                                                                                                                                                                                                                                                                               |
| `@`[RequiresSchemaVersion](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/expression/RequiresSchemaVersion)`(major = 1, minor = 0)` `class `[ModifiersBuilders.Padding](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/ModifiersBuilders.Padding) A modifier to apply padding around an element.                                                                                                                                                                                                                                                                                                                                   |
| `class `[ModifiersBuilders.Padding.Builder](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/ModifiersBuilders.Padding.Builder) Builder for[Padding](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/ModifiersBuilders.Padding)                                                                                                                                                                                                                                                                                                                                                                                                       |
| `@`[RequiresSchemaVersion](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/expression/RequiresSchemaVersion)`(major = 1, minor = 0)` `class `[ModifiersBuilders.Semantics](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/ModifiersBuilders.Semantics) A modifier for an element which has accessibility semantics associated with it.                                                                                                                                                                                                                                                                                              |
| `class `[ModifiersBuilders.Semantics.Builder](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/ModifiersBuilders.Semantics.Builder) Builder for[Semantics](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/ModifiersBuilders.Semantics)                                                                                                                                                                                                                                                                                                                                                                                               |
| `@`[RequiresSchemaVersion](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/expression/RequiresSchemaVersion)`(major = 1, minor = 300)` `class `[ModifiersBuilders.Shadow](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/ModifiersBuilders.Shadow) The shadow definition.                                                                                                                                                                                                                                                                                                                                                           |
| `class `[ModifiersBuilders.Shadow.Builder](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/ModifiersBuilders.Shadow.Builder) Builder for[Shadow](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/ModifiersBuilders.Shadow)                                                                                                                                                                                                                                                                                                                                                                                                           |
| `@`[RequiresSchemaVersion](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/expression/RequiresSchemaVersion)`(major = 1, minor = 200)` `@`[ProtoLayoutExperimental](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/expression/ProtoLayoutExperimental) `interface `[ModifiersBuilders.SlideBound](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/ModifiersBuilders.SlideBound) Interface defining the boundary that a Slide animation will use for start/end.                                                                                                                                             |
| `@`[RequiresSchemaVersion](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/expression/RequiresSchemaVersion)`(major = 1, minor = 200)` `@`[ProtoLayoutExperimental](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/expression/ProtoLayoutExperimental) `class `[ModifiersBuilders.SlideInTransition](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/ModifiersBuilders.SlideInTransition) The sliding in animation for content transition of an element and its children.                                                                                                                                  |
| `class `[ModifiersBuilders.SlideInTransition.Builder](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/ModifiersBuilders.SlideInTransition.Builder) Builder for[SlideInTransition](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/ModifiersBuilders.SlideInTransition)                                                                                                                                                                                                                                                                                                                                                               |
| `@`[RequiresSchemaVersion](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/expression/RequiresSchemaVersion)`(major = 1, minor = 200)` `@`[ProtoLayoutExperimental](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/expression/ProtoLayoutExperimental) `class `[ModifiersBuilders.SlideOutTransition](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/ModifiersBuilders.SlideOutTransition) The sliding out animation for content transition of an element and its children.                                                                                                                               |
| `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)                                                                                                                                                                                                                                                                                                                                                           |
| `@`[RequiresSchemaVersion](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/expression/RequiresSchemaVersion)`(major = 1, minor = 200)` `@`[ProtoLayoutExperimental](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/expression/ProtoLayoutExperimental) `class `[ModifiersBuilders.SlideParentBound](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/ModifiersBuilders.SlideParentBound)` : `[ModifiersBuilders.SlideBound](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/ModifiersBuilders.SlideBound) The slide animation will animate from/to the parent elements boundaries. |
| `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).                                                                                                                                                                                                                                                                                                                                                                  |
| `@`[RequiresSchemaVersion](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/expression/RequiresSchemaVersion)`(major = 1, minor = 0)` `class `[ModifiersBuilders.SpanModifiers](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/ModifiersBuilders.SpanModifiers) [Modifiers](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/ModifiersBuilders.Modifiers)that can be used with[androidx.wear.protolayout.LayoutElementBuilders.Span](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.Span)elements.                                                           |
| `class `[ModifiersBuilders.SpanModifiers.Builder](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/ModifiersBuilders.SpanModifiers.Builder) Builder for[SpanModifiers](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/ModifiersBuilders.SpanModifiers)                                                                                                                                                                                                                                                                                                                                                                               |
| `@`[RequiresSchemaVersion](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/expression/RequiresSchemaVersion)`(major = 1, minor = 400)` `class `[ModifiersBuilders.Transformation](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/ModifiersBuilders.Transformation) A modifier to apply transformations to the element.                                                                                                                                                                                                                                                                                                              |
| `class `[ModifiersBuilders.Transformation.Builder](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/ModifiersBuilders.Transformation.Builder) Builder for[Transformation](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/ModifiersBuilders.Transformation)                                                                                                                                                                                                                                                                                                                                                                           |

|                                    ### Constants                                    |
|-------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `const `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | `@`[RequiresSchemaVersion](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/expression/RequiresSchemaVersion)`(major = 1, minor = 200)` [SEMANTICS_ROLE_BUTTON](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/ModifiersBuilders#SEMANTICS_ROLE_BUTTON())` = 2` The element is a Button control.                                                                                                                                                                                                             |
| `const `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | `@`[RequiresSchemaVersion](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/expression/RequiresSchemaVersion)`(major = 1, minor = 200)` [SEMANTICS_ROLE_CHECKBOX](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/ModifiersBuilders#SEMANTICS_ROLE_CHECKBOX())` = 3` The element is a Checkbox which is a component that represents two states (checked / unchecked).                                                                                                                                         |
| `const `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | `@`[RequiresSchemaVersion](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/expression/RequiresSchemaVersion)`(major = 1, minor = 200)` [SEMANTICS_ROLE_IMAGE](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/ModifiersBuilders#SEMANTICS_ROLE_IMAGE())` = 1` The element is an image.                                                                                                                                                                                                                       |
| `const `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | `@`[RequiresSchemaVersion](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/expression/RequiresSchemaVersion)`(major = 1, minor = 200)` [SEMANTICS_ROLE_NONE](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/ModifiersBuilders#SEMANTICS_ROLE_NONE())` = 0` Role is undefined.                                                                                                                                                                                                                               |
| `const `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | `@`[RequiresSchemaVersion](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/expression/RequiresSchemaVersion)`(major = 1, minor = 200)` [SEMANTICS_ROLE_RADIOBUTTON](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/ModifiersBuilders#SEMANTICS_ROLE_RADIOBUTTON())` = 5` This element is a RadioButton which is a component to represent two states, selected and not selected.                                                                                                                             |
| `const `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | `@`[RequiresSchemaVersion](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/expression/RequiresSchemaVersion)`(major = 1, minor = 200)` [SEMANTICS_ROLE_SWITCH](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/ModifiersBuilders#SEMANTICS_ROLE_SWITCH())` = 4` The element is a Switch which is a two state toggleable component that provides on/off like options.                                                                                                                                         |
| `const `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | `@`[RequiresSchemaVersion](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/expression/RequiresSchemaVersion)`(major = 1, minor = 200)` `@`[ProtoLayoutExperimental](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/expression/ProtoLayoutExperimental) [SLIDE_DIRECTION_BOTTOM_TO_TOP](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/ModifiersBuilders#SLIDE_DIRECTION_BOTTOM_TO_TOP())` = 4` The sliding orientation that moves an element vertically from bottom to the top.   |
| `const `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | `@`[RequiresSchemaVersion](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/expression/RequiresSchemaVersion)`(major = 1, minor = 200)` `@`[ProtoLayoutExperimental](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/expression/ProtoLayoutExperimental) [SLIDE_DIRECTION_LEFT_TO_RIGHT](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/ModifiersBuilders#SLIDE_DIRECTION_LEFT_TO_RIGHT())` = 1` The sliding orientation that moves an element horizontally from left to the right. |
| `const `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | `@`[RequiresSchemaVersion](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/expression/RequiresSchemaVersion)`(major = 1, minor = 200)` `@`[ProtoLayoutExperimental](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/expression/ProtoLayoutExperimental) [SLIDE_DIRECTION_RIGHT_TO_LEFT](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/ModifiersBuilders#SLIDE_DIRECTION_RIGHT_TO_LEFT())` = 2` The sliding orientation that moves an element horizontally from right to the left. |
| `const `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | `@`[RequiresSchemaVersion](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/expression/RequiresSchemaVersion)`(major = 1, minor = 200)` `@`[ProtoLayoutExperimental](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/expression/ProtoLayoutExperimental) [SLIDE_DIRECTION_TOP_TO_BOTTOM](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/ModifiersBuilders#SLIDE_DIRECTION_TOP_TO_BOTTOM())` = 3` The sliding orientation that moves an element vertically from top to the bottom.   |
| `const `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | `@`[RequiresSchemaVersion](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/expression/RequiresSchemaVersion)`(major = 1, minor = 200)` `@`[ProtoLayoutExperimental](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/expression/ProtoLayoutExperimental) [SLIDE_DIRECTION_UNDEFINED](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/ModifiersBuilders#SLIDE_DIRECTION_UNDEFINED())` = 0` The undefined sliding orientation.                                                         |
| `const `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | `@`[RequiresSchemaVersion](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/expression/RequiresSchemaVersion)`(major = 1, minor = 200)` `@`[ProtoLayoutExperimental](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/expression/ProtoLayoutExperimental) [SLIDE_PARENT_SNAP_TO_INSIDE](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/ModifiersBuilders#SLIDE_PARENT_SNAP_TO_INSIDE())` = 1` The option that snaps insides of the element and its parent at start/end.              |
| `const `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | `@`[RequiresSchemaVersion](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/expression/RequiresSchemaVersion)`(major = 1, minor = 200)` `@`[ProtoLayoutExperimental](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/expression/ProtoLayoutExperimental) [SLIDE_PARENT_SNAP_TO_OUTSIDE](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/ModifiersBuilders#SLIDE_PARENT_SNAP_TO_OUTSIDE())` = 2` The option that snaps outsides of the element and its parent at start/end.           |
| `const `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | `@`[RequiresSchemaVersion](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/expression/RequiresSchemaVersion)`(major = 1, minor = 200)` `@`[ProtoLayoutExperimental](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/expression/ProtoLayoutExperimental) [SLIDE_PARENT_SNAP_UNDEFINED](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/ModifiersBuilders#SLIDE_PARENT_SNAP_UNDEFINED())` = 0` The undefined snapping option.                                                         |

## Constants

### SEMANTICS_ROLE_BUTTON

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

```
@RequiresSchemaVersion(major = 1, minor = 200)
const val SEMANTICS_ROLE_BUTTON = 2: Int
```

The element is a Button control.  

### SEMANTICS_ROLE_CHECKBOX

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

```
@RequiresSchemaVersion(major = 1, minor = 200)
const val SEMANTICS_ROLE_CHECKBOX = 3: Int
```

The element is a Checkbox which is a component that represents two states (checked / unchecked).  

### SEMANTICS_ROLE_IMAGE

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

```
@RequiresSchemaVersion(major = 1, minor = 200)
const val SEMANTICS_ROLE_IMAGE = 1: Int
```

The element is an image.  

### SEMANTICS_ROLE_NONE

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

```
@RequiresSchemaVersion(major = 1, minor = 200)
const val SEMANTICS_ROLE_NONE = 0: Int
```

Role is undefined. It may be automatically populated.  

### SEMANTICS_ROLE_RADIOBUTTON

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

```
@RequiresSchemaVersion(major = 1, minor = 200)
const val SEMANTICS_ROLE_RADIOBUTTON = 5: Int
```

This element is a RadioButton which is a component to represent two states, selected and not selected.  

### SEMANTICS_ROLE_SWITCH

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

```
@RequiresSchemaVersion(major = 1, minor = 200)
const val SEMANTICS_ROLE_SWITCH = 4: Int
```

The element is a Switch which is a two state toggleable component that provides on/off like options.  

### SLIDE_DIRECTION_BOTTOM_TO_TOP

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

```
@RequiresSchemaVersion(major = 1, minor = 200)
@ProtoLayoutExperimental
const val SLIDE_DIRECTION_BOTTOM_TO_TOP = 4: Int
```

The sliding orientation that moves an element vertically from bottom to the top.  

### SLIDE_DIRECTION_LEFT_TO_RIGHT

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

```
@RequiresSchemaVersion(major = 1, minor = 200)
@ProtoLayoutExperimental
const val SLIDE_DIRECTION_LEFT_TO_RIGHT = 1: Int
```

The sliding orientation that moves an element horizontally from left to the right.  

### SLIDE_DIRECTION_RIGHT_TO_LEFT

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

```
@RequiresSchemaVersion(major = 1, minor = 200)
@ProtoLayoutExperimental
const val SLIDE_DIRECTION_RIGHT_TO_LEFT = 2: Int
```

The sliding orientation that moves an element horizontally from right to the left.  

### SLIDE_DIRECTION_TOP_TO_BOTTOM

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

```
@RequiresSchemaVersion(major = 1, minor = 200)
@ProtoLayoutExperimental
const val SLIDE_DIRECTION_TOP_TO_BOTTOM = 3: Int
```

The sliding orientation that moves an element vertically from top to the bottom.  

### SLIDE_DIRECTION_UNDEFINED

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

```
@RequiresSchemaVersion(major = 1, minor = 200)
@ProtoLayoutExperimental
const val SLIDE_DIRECTION_UNDEFINED = 0: Int
```

The undefined sliding orientation.  

### SLIDE_PARENT_SNAP_TO_INSIDE

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

```
@RequiresSchemaVersion(major = 1, minor = 200)
@ProtoLayoutExperimental
const val SLIDE_PARENT_SNAP_TO_INSIDE = 1: Int
```

The option that snaps insides of the element and its parent at start/end.  

### SLIDE_PARENT_SNAP_TO_OUTSIDE

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

```
@RequiresSchemaVersion(major = 1, minor = 200)
@ProtoLayoutExperimental
const val SLIDE_PARENT_SNAP_TO_OUTSIDE = 2: Int
```

The option that snaps outsides of the element and its parent at start/end.  

### SLIDE_PARENT_SNAP_UNDEFINED

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

```
@RequiresSchemaVersion(major = 1, minor = 200)
@ProtoLayoutExperimental
const val SLIDE_PARENT_SNAP_UNDEFINED = 0: Int
```

The undefined snapping option.