# RemoteTextToggleButtonShapes

> Represents the shapes used for [RemoteTextToggleButton] in the checked and unchecked states, and while pressed.

## API Reference

> Source set: Android

```kotlin
public class RemoteTextToggleButtonShapes(
    public val uncheckedShape: RemoteShape,
    public val checkedShape: RemoteShape = uncheckedShape,
    public val uncheckedPressedShape: RemoteShape = uncheckedShape,
    public val checkedPressedShape: RemoteShape = checkedShape,
)
```

Represents the shapes used for [RemoteTextToggleButton](https://composables.com/jetpack-compose/androidx.wear.compose.remote/remote-material3/composable-functions/RemoteTextToggleButton/api.md) in the checked and unchecked states, and
while pressed.

When the `checked` state of [RemoteTextToggleButton](https://composables.com/jetpack-compose/androidx.wear.compose.remote/remote-material3/composable-functions/RemoteTextToggleButton/api.md) is not a constant, a change of shape between
`uncheckedShape` and `checkedShape` is only supported when both are `RemoteRoundedCornerShape`s;
otherwise `uncheckedShape` is used.

When the pressed shapes differ from the resting shapes, [RemoteTextToggleButton](https://composables.com/jetpack-compose/androidx.wear.compose.remote/remote-material3/composable-functions/RemoteTextToggleButton/api.md) animates to
`uncheckedPressedShape` or `checkedPressedShape` while it is pressed. The press animation
requires all the shapes to be `RemoteRoundedCornerShape`s and the toggle button to be enabled
with a constant value.

#### Parameters

| | |
| --- | --- |
| uncheckedShape | The shape of the toggle button when unchecked. |
| checkedShape | The shape of the toggle button when checked. |
| uncheckedPressedShape | The shape of the toggle button when unchecked and pressed. |
| checkedPressedShape | The shape of the toggle button when checked and pressed. |

## Functions

### copy

> Source set: Android

```kotlin
public fun copy(
        uncheckedShape: RemoteShape = this.uncheckedShape,
        checkedShape: RemoteShape = this.checkedShape,
        uncheckedPressedShape: RemoteShape = this.uncheckedPressedShape,
        checkedPressedShape: RemoteShape = this.checkedPressedShape,
    ): RemoteTextToggleButtonShapes
```

Returns a copy of this [RemoteTextToggleButtonShapes](https://composables.com/jetpack-compose/androidx.wear.compose.remote/remote-material3/classes/RemoteTextToggleButtonShapes/api.md) optionally overriding some of the
values.

#### Parameters

| | |
| --- | --- |
| uncheckedShape | The shape of the toggle button when unchecked. |
| checkedShape | The shape of the toggle button when checked. |
| uncheckedPressedShape | The shape of the toggle button when unchecked and pressed. |
| checkedPressedShape | The shape of the toggle button when checked and pressed. |

#### Return

a copy of this [RemoteTextToggleButtonShapes](https://composables.com/jetpack-compose/androidx.wear.compose.remote/remote-material3/classes/RemoteTextToggleButtonShapes/api.md) with the specified values overridden

### equals

> Source set: Android

```kotlin
override fun equals(other: Any?): Boolean
```

### hashCode

> Source set: Android

```kotlin
override fun hashCode(): Int
```
