# RemoteTextToggleButtonDefaults

> Contains the default values used by [RemoteTextToggleButton].

## API Reference

> Source set: Android

```kotlin
public object RemoteTextToggleButtonDefaults
```

Contains the default values used by [RemoteTextToggleButton](https://composables.com/jetpack-compose/androidx.wear.compose.remote/remote-material3/composable-functions/RemoteTextToggleButton/api.md).

## Properties

### shape

> Source set: Android

```kotlin
public val shape: RemoteRoundedCornerShape = RemoteCircleShape
```

Recommended `RemoteShape` for [RemoteTextToggleButton](https://composables.com/jetpack-compose/androidx.wear.compose.remote/remote-material3/composable-functions/RemoteTextToggleButton/api.md).

### checkedShape

> Source set: Android

```kotlin
public val checkedShape: RemoteCornerBasedShape
```

Recommended checked `RemoteShape` for [RemoteTextToggleButton](https://composables.com/jetpack-compose/androidx.wear.compose.remote/remote-material3/composable-functions/RemoteTextToggleButton/api.md) when using `variantShapes` or
`variantAnimatedShapes`.

### pressedShape

> Source set: Android

```kotlin
public val pressedShape: RemoteCornerBasedShape
```

Recommended pressed `RemoteShape` for [RemoteTextToggleButton](https://composables.com/jetpack-compose/androidx.wear.compose.remote/remote-material3/composable-functions/RemoteTextToggleButton/api.md) when using `animatedShapes`.

### Size

> Source set: Android

```kotlin
public val Size: RemoteDp = 52.rdp
```

The default size applied for [RemoteTextToggleButton](https://composables.com/jetpack-compose/androidx.wear.compose.remote/remote-material3/composable-functions/RemoteTextToggleButton/api.md).

### LargeSize

> Source set: Android

```kotlin
public val LargeSize: RemoteDp = 60.rdp
```

The recommended size for a large [RemoteTextToggleButton](https://composables.com/jetpack-compose/androidx.wear.compose.remote/remote-material3/composable-functions/RemoteTextToggleButton/api.md).

### ExtraLargeSize

> Source set: Android

```kotlin
public val ExtraLargeSize: RemoteDp = 72.rdp
```

The recommended size for an extra large [RemoteTextToggleButton](https://composables.com/jetpack-compose/androidx.wear.compose.remote/remote-material3/composable-functions/RemoteTextToggleButton/api.md).

### textStyle

> Source set: Android

```kotlin
public val textStyle: RemoteTextStyle
```

The default text style applied for [RemoteTextToggleButton](https://composables.com/jetpack-compose/androidx.wear.compose.remote/remote-material3/composable-functions/RemoteTextToggleButton/api.md) of size `Size`.

### largeTextStyle

> Source set: Android

```kotlin
public val largeTextStyle: RemoteTextStyle
```

The recommended text style for a [RemoteTextToggleButton](https://composables.com/jetpack-compose/androidx.wear.compose.remote/remote-material3/composable-functions/RemoteTextToggleButton/api.md) of size `LargeSize`.

### extraLargeTextStyle

> Source set: Android

```kotlin
public val extraLargeTextStyle: RemoteTextStyle
```

The recommended text style for a [RemoteTextToggleButton](https://composables.com/jetpack-compose/androidx.wear.compose.remote/remote-material3/composable-functions/RemoteTextToggleButton/api.md) of size `ExtraLargeSize`.

## Functions

### shapes

> Source set: Android

```kotlin
@Composable @RemoteComposable public fun shapes(): RemoteTextToggleButtonShapes
```

Creates a [RemoteTextToggleButtonShapes](https://composables.com/jetpack-compose/androidx.wear.compose.remote/remote-material3/classes/RemoteTextToggleButtonShapes/api.md) with a static `shape` that doesn't change between
the checked and unchecked states.

#### Return

a [RemoteTextToggleButtonShapes](https://composables.com/jetpack-compose/androidx.wear.compose.remote/remote-material3/classes/RemoteTextToggleButtonShapes/api.md) with the default static [shape](https://composables.com/jetpack-compose/androidx.compose.ui/ui-graphics/interfaces/Shape/api.md)

### shapes

> Source set: Android

```kotlin
@Composable
    public fun shapes(shape: RemoteShape): RemoteTextToggleButtonShapes
```

Creates a [RemoteTextToggleButtonShapes](https://composables.com/jetpack-compose/androidx.wear.compose.remote/remote-material3/classes/RemoteTextToggleButtonShapes/api.md) with a static `shape` that doesn't change between
the checked and unchecked states.

#### Parameters

| | |
| --- | --- |
| shape | The shape of the toggle button. |

#### Return

a [RemoteTextToggleButtonShapes](https://composables.com/jetpack-compose/androidx.wear.compose.remote/remote-material3/classes/RemoteTextToggleButtonShapes/api.md) with the given static [shape](https://composables.com/jetpack-compose/androidx.compose.ui/ui-graphics/interfaces/Shape/api.md)

### variantShapes

> Source set: Android

```kotlin
@Composable
    public fun variantShapes(
        uncheckedShape: RemoteCornerBasedShape = shape,
        checkedShape: RemoteCornerBasedShape = this.checkedShape,
    ): RemoteTextToggleButtonShapes
```

Creates a [RemoteTextToggleButtonShapes](https://composables.com/jetpack-compose/androidx.wear.compose.remote/remote-material3/classes/RemoteTextToggleButtonShapes/api.md) where the toggle button changes from
`uncheckedShape` to `checkedShape` when checked.

The shape is selected at playback time when [RemoteTextToggleButton](https://composables.com/jetpack-compose/androidx.wear.compose.remote/remote-material3/composable-functions/RemoteTextToggleButton/api.md)'s `checked` is not a
constant, which requires both shapes to be `RemoteRoundedCornerShape`s.

#### Parameters

| | |
| --- | --- |
| uncheckedShape | The shape of the toggle button when unchecked. |
| checkedShape | The shape of the toggle button when checked. |

#### Return

a [RemoteTextToggleButtonShapes](https://composables.com/jetpack-compose/androidx.wear.compose.remote/remote-material3/classes/RemoteTextToggleButtonShapes/api.md) with the configured unchecked and checked shapes

### animatedShapes

> Source set: Android

```kotlin
@Composable
    public fun animatedShapes(
        shape: RemoteCornerBasedShape = this.shape,
        pressedShape: RemoteCornerBasedShape = this.pressedShape,
    ): RemoteTextToggleButtonShapes
```

Creates a [RemoteTextToggleButtonShapes](https://composables.com/jetpack-compose/androidx.wear.compose.remote/remote-material3/classes/RemoteTextToggleButtonShapes/api.md) with a static `shape` that animates to
`pressedShape` when pressed.

The press animation requires both shapes to be `RemoteRoundedCornerShape`s. It is driven by
touch events on the player, and is not shown by players that don't dispatch them.

#### Parameters

| | |
| --- | --- |
| shape | The shape of the toggle button when not pressed. |
| pressedShape | The shape of the toggle button when pressed. |

#### Return

a [RemoteTextToggleButtonShapes](https://composables.com/jetpack-compose/androidx.wear.compose.remote/remote-material3/classes/RemoteTextToggleButtonShapes/api.md) with the configured resting and pressed shapes

### variantAnimatedShapes

> Source set: Android

```kotlin
@Composable
    public fun variantAnimatedShapes(
        uncheckedShape: RemoteCornerBasedShape = shape,
        checkedShape: RemoteCornerBasedShape = this.checkedShape,
    ): RemoteTextToggleButtonShapes
```

Creates a [RemoteTextToggleButtonShapes](https://composables.com/jetpack-compose/androidx.wear.compose.remote/remote-material3/classes/RemoteTextToggleButtonShapes/api.md) where the toggle button changes from
`uncheckedShape` to `checkedShape` when checked, and animates to a shape with smaller corners
when pressed.

Dynamic shape selection and the press animation require both shapes to be
`RemoteRoundedCornerShape`s. The press animation is driven by touch events on the player, and
is not shown by players that don't dispatch them.

#### Parameters

| | |
| --- | --- |
| uncheckedShape | The shape of the toggle button when unchecked. |
| checkedShape | The shape of the toggle button when checked. |

#### Return

a [RemoteTextToggleButtonShapes](https://composables.com/jetpack-compose/androidx.wear.compose.remote/remote-material3/classes/RemoteTextToggleButtonShapes/api.md) with the configured unchecked, checked and pressed shapes

### colors

> Source set: Android

```kotlin
@Composable
    public fun colors(): RemoteTextToggleButtonColors
```

Creates a [RemoteTextToggleButtonColors](https://composables.com/jetpack-compose/androidx.wear.compose.remote/remote-material3/classes/RemoteTextToggleButtonColors/api.md) for a [RemoteTextToggleButton](https://composables.com/jetpack-compose/androidx.wear.compose.remote/remote-material3/composable-functions/RemoteTextToggleButton/api.md) - by default, a
primary container when checked and a tonal container when unchecked.

#### Return

a [RemoteTextToggleButtonColors](https://composables.com/jetpack-compose/androidx.wear.compose.remote/remote-material3/classes/RemoteTextToggleButtonColors/api.md) with the default colors for [RemoteTextToggleButton](https://composables.com/jetpack-compose/androidx.wear.compose.remote/remote-material3/composable-functions/RemoteTextToggleButton/api.md)

### colors

> Source set: Android

```kotlin
@Composable
    public fun colors(
        checkedContainerColor: RemoteColor? = null,
        checkedContentColor: RemoteColor? = null,
        uncheckedContainerColor: RemoteColor? = null,
        uncheckedContentColor: RemoteColor? = null,
        disabledCheckedContainerColor: RemoteColor? = null,
        disabledCheckedContentColor: RemoteColor? = null,
        disabledUncheckedContainerColor: RemoteColor? = null,
        disabledUncheckedContentColor: RemoteColor? = null,
    ): RemoteTextToggleButtonColors
```

Creates a [RemoteTextToggleButtonColors](https://composables.com/jetpack-compose/androidx.wear.compose.remote/remote-material3/classes/RemoteTextToggleButtonColors/api.md) for a [RemoteTextToggleButton](https://composables.com/jetpack-compose/androidx.wear.compose.remote/remote-material3/composable-functions/RemoteTextToggleButton/api.md) - by default, a
primary container when checked and a tonal container when unchecked.

#### Parameters

| | |
| --- | --- |
| checkedContainerColor | The container color of this toggle button when enabled and checked, or `null` to use the theme default. |
| checkedContentColor | The content color of this toggle button when enabled and checked, or `null` to use the theme default. |
| uncheckedContainerColor | The container color of this toggle button when enabled and unchecked, or `null` to use the theme default. |
| uncheckedContentColor | The content color of this toggle button when enabled and unchecked, or `null` to use the theme default. |
| disabledCheckedContainerColor | The container color of this toggle button when checked and not enabled, or `null` to use the theme default. |
| disabledCheckedContentColor | The content color of this toggle button when checked and not enabled, or `null` to use the theme default. |
| disabledUncheckedContainerColor | The container color of this toggle button when unchecked and not enabled, or `null` to use the theme default. |
| disabledUncheckedContentColor | The content color of this toggle button when unchecked and not enabled, or `null` to use the theme default. |

#### Return

a [RemoteTextToggleButtonColors](https://composables.com/jetpack-compose/androidx.wear.compose.remote/remote-material3/classes/RemoteTextToggleButtonColors/api.md) with the configured colors for [RemoteTextToggleButton](https://composables.com/jetpack-compose/androidx.wear.compose.remote/remote-material3/composable-functions/RemoteTextToggleButton/api.md)
