# RevealDirection

Artifact: [androidx.wear.compose:compose-material3](https://developer.android.com/jetpack/androidx/releases/wear-compose) [View Source](https://cs.android.com/search?q=file:androidx/wear/compose/material3/SwipeToReveal.kt+class:androidx.wear.compose.material3.RevealDirection) Added in [1.5.0](https://developer.android.com/jetpack/androidx/releases/wear-compose#1.5.0)


```
value class RevealDirection
```

<br />

*** ** * ** ***

Different values `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/SwipeToReveal.composable#SwipeToReveal(kotlin.Function1,kotlin.Function0,androidx.wear.compose.material3.SurfaceTransformation,androidx.compose.ui.Modifier,kotlin.Function1,kotlin.Function1,kotlin.Function1,androidx.wear.compose.material3.RevealState,androidx.wear.compose.material3.RevealDirection,kotlin.Boolean,androidx.wear.compose.foundation.GestureInclusion,androidx.compose.ui.unit.Dp,kotlin.Function0)` composable can reveal the actions from.

`https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/RevealDirection` is not localised, with the default being `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/RevealDirection#RightToLeft()` to prevent conflict with the system-wide swipe to dismiss gesture in an activity, so it's strongly advised to respect the default value to avoid conflicting gestures.

## Summary

| ### Public companion properties |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/RevealDirection` | `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/RevealDirection#Bidirectional()` The value which allows the user to swipe in either direction to reveal or execute the actions. |
| `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/RevealDirection` | `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/RevealDirection#RightToLeft()` The default value which allows the user to swipe right to left to reveal or execute the actions. |

## Public companion properties

### Bidirectional

```
val Bidirectional: RevealDirection
```

The value which allows the user to swipe in either direction to reveal or execute the actions. This should not be used if the component is used in an activity as the gesture might conflict with the swipe-to-dismiss gesture and could be confusing for the users. This is only supported for rare cases where the current screen does not support swipe to dismiss.

### RightToLeft

```
val RightToLeft: RevealDirection
```

The default value which allows the user to swipe right to left to reveal or execute the actions. It's strongly advised to respect the default behavior to avoid conflict with the swipe-to-dismiss gesture.