# SwipeToRevealActionColors

# SwipeToRevealActionColors

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

<br />

```
@ExperimentalWearMaterialApi
class SwipeToRevealActionColors
```

<br />

*** ** * ** ***

A class representing the colors applied in[SwipeToReveal](https://developer.android.com/reference/kotlin/androidx/wear/compose/material/package-summary#SwipeToReveal(kotlin.Function0,androidx.compose.ui.Modifier,kotlin.Function0,androidx.wear.compose.material.RevealState,kotlin.Function0,kotlin.Function0,kotlin.Function0))actions. See[SwipeToRevealDefaults.actionColors](https://developer.android.com/reference/kotlin/androidx/wear/compose/material/SwipeToRevealDefaults#actionColors(androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color)).

## Summary

|                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       ### Public constructors                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [SwipeToRevealActionColors](https://developer.android.com/reference/kotlin/androidx/wear/compose/material/SwipeToRevealActionColors#SwipeToRevealActionColors(androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color))`(` ` primaryActionBackgroundColor: `[Color](https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color)`,` ` primaryActionContentColor: `[Color](https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color)`,` ` secondaryActionBackgroundColor: `[Color](https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color)`,` ` secondaryActionContentColor: `[Color](https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color)`,` ` undoActionBackgroundColor: `[Color](https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color)`,` ` undoActionContentColor: `[Color](https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color) `)` |

|                                        ### Public functions                                         |
|-----------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `open operator `[Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html) | [equals](https://developer.android.com/reference/kotlin/androidx/wear/compose/material/SwipeToRevealActionColors#equals(kotlin.Any))`(other: `[Any](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html)`?)` |
| `open `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)                  | [hashCode](https://developer.android.com/reference/kotlin/androidx/wear/compose/material/SwipeToRevealActionColors#hashCode())`()`                                                                                            |

|                                   ### Public properties                                    |
|--------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [Color](https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color) | [primaryActionBackgroundColor](https://developer.android.com/reference/kotlin/androidx/wear/compose/material/SwipeToRevealActionColors#primaryActionBackgroundColor()) Color of the shape (background) of primary action    |
| [Color](https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color) | [primaryActionContentColor](https://developer.android.com/reference/kotlin/androidx/wear/compose/material/SwipeToRevealActionColors#primaryActionContentColor()) Color of icon or text used in the primary action           |
| [Color](https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color) | [secondaryActionBackgroundColor](https://developer.android.com/reference/kotlin/androidx/wear/compose/material/SwipeToRevealActionColors#secondaryActionBackgroundColor()) Color of the secondary action shape (background) |
| [Color](https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color) | [secondaryActionContentColor](https://developer.android.com/reference/kotlin/androidx/wear/compose/material/SwipeToRevealActionColors#secondaryActionContentColor()) Color of the icon or text used in the secondary action |
| [Color](https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color) | [undoActionBackgroundColor](https://developer.android.com/reference/kotlin/androidx/wear/compose/material/SwipeToRevealActionColors#undoActionBackgroundColor()) Color of the undo action shape (background)                |
| [Color](https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color) | [undoActionContentColor](https://developer.android.com/reference/kotlin/androidx/wear/compose/material/SwipeToRevealActionColors#undoActionContentColor()) Color of the icon or text used in the undo action                |

## Public constructors

### SwipeToRevealActionColors

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

```
SwipeToRevealActionColors(
    primaryActionBackgroundColor: Color,
    primaryActionContentColor: Color,
    secondaryActionBackgroundColor: Color,
    secondaryActionContentColor: Color,
    undoActionBackgroundColor: Color,
    undoActionContentColor: Color
)
```  

|                                                          Parameters                                                          |
|------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------|
| `primaryActionBackgroundColor: `[Color](https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color)   | Color of the shape (background) of primary action      |
| `primaryActionContentColor: `[Color](https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color)      | Color of icon or text used in the primary action       |
| `secondaryActionBackgroundColor: `[Color](https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color) | Color of the secondary action shape (background)       |
| `secondaryActionContentColor: `[Color](https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color)    | Color of the icon or text used in the secondary action |
| `undoActionBackgroundColor: `[Color](https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color)      | Color of the undo action shape (background)            |
| `undoActionContentColor: `[Color](https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color)         | Color of the icon or text used in the undo action      |

## Public functions

### equals

```
open operator fun equals(other: Any?): Boolean
```  

### hashCode

```
open fun hashCode(): Int
```  

## Public properties

### primaryActionBackgroundColor

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

```
val primaryActionBackgroundColor: Color
```

Color of the shape (background) of primary action  

### primaryActionContentColor

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

```
val primaryActionContentColor: Color
```

Color of icon or text used in the primary action  

### secondaryActionBackgroundColor

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

```
val secondaryActionBackgroundColor: Color
```

Color of the secondary action shape (background)  

### secondaryActionContentColor

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

```
val secondaryActionContentColor: Color
```

Color of the icon or text used in the secondary action  

### undoActionBackgroundColor

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

```
val undoActionBackgroundColor: Color
```

Color of the undo action shape (background)  

### undoActionContentColor

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

```
val undoActionContentColor: Color
```

Color of the icon or text used in the undo action