# RevealActionType

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


```
@ExperimentalWearFoundationApi
value class RevealActionType
```

<br />

*** ** * ** ***

> [!CAUTION]
> **This class is deprecated.**   
> The SwipeToReveal component from the latest material library should be used instead. This will be removed in a future release of this library.

Different values which can trigger the state change from one `https://developer.android.com/reference/kotlin/androidx/wear/compose/foundation/RevealValue` to another. These are not set by themselves and need to be set appropriately with `https://developer.android.com/reference/kotlin/androidx/wear/compose/foundation/RevealState#snapTo(androidx.wear.compose.foundation.RevealValue)` and `https://developer.android.com/reference/kotlin/androidx/wear/compose/foundation/RevealState#animateTo(androidx.wear.compose.foundation.RevealValue)`.

## Summary

| ### Public companion properties |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/wear/compose/foundation/RevealActionType` | `https://developer.android.com/reference/kotlin/androidx/wear/compose/foundation/RevealActionType#None()` **This property is deprecated.** The SwipeToReveal component from the latest material library should be used instead. |
| `https://developer.android.com/reference/kotlin/androidx/wear/compose/foundation/RevealActionType` | `https://developer.android.com/reference/kotlin/androidx/wear/compose/foundation/RevealActionType#PrimaryAction()` **This property is deprecated.** The SwipeToReveal component from the latest material library should be used instead. |
| `https://developer.android.com/reference/kotlin/androidx/wear/compose/foundation/RevealActionType` | `https://developer.android.com/reference/kotlin/androidx/wear/compose/foundation/RevealActionType#SecondaryAction()` **This property is deprecated.** The SwipeToReveal component from the latest material library should be used instead. |
| `https://developer.android.com/reference/kotlin/androidx/wear/compose/foundation/RevealActionType` | `https://developer.android.com/reference/kotlin/androidx/wear/compose/foundation/RevealActionType#UndoAction()` **This property is deprecated.** The SwipeToReveal component from the latest material library should be used instead. |

| ### Public properties |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/wear/compose/foundation/RevealActionType#value()` **This property is deprecated.** The SwipeToReveal component from the latest material library should be used instead. |

## Public companion properties

### None

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

```
val None: RevealActionType
```

> [!CAUTION]
> **This property is deprecated.**   
> The SwipeToReveal component from the latest material library should be used instead. This will be removed in a future release of this library.

Default value when none of the above are applicable.

### PrimaryAction

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

```
val PrimaryAction: RevealActionType
```

> [!CAUTION]
> **This property is deprecated.**   
> The SwipeToReveal component from the latest material library should be used instead. This will be removed in a future release of this library.

Represents the primary action composable of `https://developer.android.com/reference/kotlin/androidx/wear/compose/foundation/SwipeToReveal.composable#SwipeToReveal(kotlin.Function0,androidx.compose.ui.Modifier,kotlin.Function0,androidx.wear.compose.foundation.RevealState,kotlin.Function0,kotlin.Function0,androidx.wear.compose.foundation.GestureInclusion,kotlin.Function0)`. This corresponds to the mandatory `primaryAction` parameter of `https://developer.android.com/reference/kotlin/androidx/wear/compose/foundation/SwipeToReveal.composable#SwipeToReveal(kotlin.Function0,androidx.compose.ui.Modifier,kotlin.Function0,androidx.wear.compose.foundation.RevealState,kotlin.Function0,kotlin.Function0,androidx.wear.compose.foundation.GestureInclusion,kotlin.Function0)`.

### SecondaryAction

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

```
val SecondaryAction: RevealActionType
```

> [!CAUTION]
> **This property is deprecated.**   
> The SwipeToReveal component from the latest material library should be used instead. This will be removed in a future release of this library.

Represents the secondary action composable of `https://developer.android.com/reference/kotlin/androidx/wear/compose/foundation/SwipeToReveal.composable#SwipeToReveal(kotlin.Function0,androidx.compose.ui.Modifier,kotlin.Function0,androidx.wear.compose.foundation.RevealState,kotlin.Function0,kotlin.Function0,androidx.wear.compose.foundation.GestureInclusion,kotlin.Function0)`. This corresponds to the optional `secondaryAction` composable of `https://developer.android.com/reference/kotlin/androidx/wear/compose/foundation/SwipeToReveal.composable#SwipeToReveal(kotlin.Function0,androidx.compose.ui.Modifier,kotlin.Function0,androidx.wear.compose.foundation.RevealState,kotlin.Function0,kotlin.Function0,androidx.wear.compose.foundation.GestureInclusion,kotlin.Function0)`.

### UndoAction

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

```
val UndoAction: RevealActionType
```

> [!CAUTION]
> **This property is deprecated.**   
> The SwipeToReveal component from the latest material library should be used instead. This will be removed in a future release of this library.

Represents the undo action composable of `https://developer.android.com/reference/kotlin/androidx/wear/compose/foundation/SwipeToReveal.composable#SwipeToReveal(kotlin.Function0,androidx.compose.ui.Modifier,kotlin.Function0,androidx.wear.compose.foundation.RevealState,kotlin.Function0,kotlin.Function0,androidx.wear.compose.foundation.GestureInclusion,kotlin.Function0)`. This corresponds to the `undoAction` composable of `https://developer.android.com/reference/kotlin/androidx/wear/compose/foundation/SwipeToReveal.composable#SwipeToReveal(kotlin.Function0,androidx.compose.ui.Modifier,kotlin.Function0,androidx.wear.compose.foundation.RevealState,kotlin.Function0,kotlin.Function0,androidx.wear.compose.foundation.GestureInclusion,kotlin.Function0)` which is shown once an action is performed.

## Public properties

### value

Added in [1.4.0](https://developer.android.com/jetpack/androidx/releases/wear-compose#1.4.0) Deprecated in [1.5.0](https://developer.android.com/jetpack/androidx/releases/wear-compose#1.5.0)

```
val value: Int
```

> [!CAUTION]
> **This property is deprecated.**   
> The SwipeToReveal component from the latest material library should be used instead. This will be removed in a future release of this library.