> Documentation index: https://developer.android.com/reference/llms.txt

# RemoteTextButtonShapes

Artifact: [androidx.wear.compose.remote:remote-material3](https://developer.android.com/jetpack/androidx/releases/wear-compose-remote.md.txt) [View Source](https://cs.android.com/search?q=file:androidx/wear/compose/remote/material3/RemoteTextButton.kt+class:androidx.wear.compose.remote.material3.RemoteTextButtonShapes) Added in [1.0.0-alpha16](https://developer.android.com/jetpack/androidx/releases/wear-compose-remote.md.txt#1.0.0-alpha16)


```
class RemoteTextButtonShapes
```

<br />

*** ** * ** ***

Represents the shapes used for `RemoteTextButton` in various states.

When `pressedShape` differs from `shape`, `RemoteTextButton` animates to `pressedShape` while it is pressed. The press animation requires both shapes to be `RemoteRoundedCornerShape`s and the text button to be enabled with a constant value.

## Summary

| ### Public constructors |
|---|
| `RemoteTextButtonShapes(shape: RemoteShape, pressedShape: RemoteShape)` |

| ### Public functions |
|---|---|
| `RemoteTextButtonShapes` | `copy(shape: RemoteShape, pressedShape: RemoteShape)` Returns a copy of this `RemoteTextButtonShapes`, optionally overriding some of the values. |
| `open operator Boolean` | `equals(other: Any?)` |
| `open Int` | `hashCode()` |

| ### Public properties |
|---|---|
| `RemoteShape` | `pressedShape` the shape of the text button when pressed. |
| `RemoteShape` | `shape` the shape of the text button when not pressed. |

## Public constructors

### RemoteTextButtonShapes

Added in [1.0.0-alpha16](https://developer.android.com/jetpack/androidx/releases/wear-compose-remote.md.txt#1.0.0-alpha16)

```
RemoteTextButtonShapes(
    shape: RemoteShape,
    pressedShape: RemoteShape = shape
)
```

| Parameters |
|---|---|
| `shape: RemoteShape` | the shape of the text button when not pressed. |
| `pressedShape: RemoteShape = shape` | the shape of the text button when pressed. |

## Public functions

### copy

Added in [1.0.0-alpha16](https://developer.android.com/jetpack/androidx/releases/wear-compose-remote.md.txt#1.0.0-alpha16)

```
fun copy(
    shape: RemoteShape = this.shape,
    pressedShape: RemoteShape = this.pressedShape
): RemoteTextButtonShapes
```

Returns a copy of this `RemoteTextButtonShapes`, optionally overriding some of the values.

| Parameters |
|---|---|
| `shape: RemoteShape = this.shape` | the shape of the text button when not pressed. |
| `pressedShape: RemoteShape = this.pressedShape` | the shape of the text button when pressed. |

| Returns |
|---|---|
| `RemoteTextButtonShapes` | a copy of this `RemoteTextButtonShapes` with the specified values overridden |

### equals

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

### hashCode

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

## Public properties

### pressedShape

Added in [1.0.0-alpha16](https://developer.android.com/jetpack/androidx/releases/wear-compose-remote.md.txt#1.0.0-alpha16)

```
val pressedShape: RemoteShape
```

the shape of the text button when pressed.

### shape

Added in [1.0.0-alpha16](https://developer.android.com/jetpack/androidx/releases/wear-compose-remote.md.txt#1.0.0-alpha16)

```
val shape: RemoteShape
```

the shape of the text button when not pressed.