---
title: "RevealDirection"
description: "Different values [SwipeToReveal] composable can reveal the actions from.

[RevealDirection] is not localised, with the default being [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."
type: "class"
---

<div class='type'>Class</div>


<a id='references'></a>

<div class='sourceset sourceset-android'>Android</div>


```kotlin
@ExperimentalWearMaterialApi
public value class RevealDirection private constructor(public val value: Int)
```


Different values `SwipeToReveal` composable can reveal the actions from.

`RevealDirection` is not localised, with the default being `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.


## Companion Object

#### Properties

<div class='sourceset sourceset-android'>Android</div>


```kotlin
public 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.



<div class='sourceset sourceset-android'>Android</div>


```kotlin
public val Both: 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.





