# ButtonDefaults

Artifact: [androidx.wear.protolayout:protolayout-material3](https://developer.android.com/jetpack/androidx/releases/wear-protolayout) [View Source](https://cs.android.com/search?q=file:androidx/wear/protolayout/material3/ButtonDefaults.kt+class:androidx.wear.protolayout.material3.ButtonDefaults) Added in [1.3.0](https://developer.android.com/jetpack/androidx/releases/wear-protolayout#1.3.0)

*** ** * ** ***


```
public static class ButtonDefaults
```

<br />

*** ** * ** ***

## Summary

| ### Public fields |
|---|---|
| `static @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/wear/protolayout/material3/ButtonDefaults` | `https://developer.android.com/reference/androidx/wear/protolayout/material3/ButtonDefaults#INSTANCE()` |

| ### Public methods |
|---|---|
| `final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/wear/protolayout/material3/ButtonColors` | `https://developer.android.com/reference/androidx/wear/protolayout/material3/ButtonDefaults#(androidx.wear.protolayout.material3.MaterialScope).filledButtonColors()(@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/wear/protolayout/material3/MaterialScope receiver)` `https://developer.android.com/reference/androidx/wear/protolayout/material3/ButtonColors` for the high-emphasis button representing the primary, most important or most common action on a screen. |
| `final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/wear/protolayout/material3/ButtonColors` | `https://developer.android.com/reference/androidx/wear/protolayout/material3/ButtonDefaults#(androidx.wear.protolayout.material3.MaterialScope).filledTonalButtonColors()(@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/wear/protolayout/material3/MaterialScope receiver)` `https://developer.android.com/reference/androidx/wear/protolayout/material3/ButtonColors` for the medium-emphasis button. |
| `final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/wear/protolayout/material3/ButtonColors` | `https://developer.android.com/reference/androidx/wear/protolayout/material3/ButtonDefaults#(androidx.wear.protolayout.material3.MaterialScope).filledVariantButtonColors()(@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/wear/protolayout/material3/MaterialScope receiver)` Alternative `https://developer.android.com/reference/androidx/wear/protolayout/material3/ButtonColors` for the high-emphasis button. |

## Public fields

### INSTANCE

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

```
public static @NonNull ButtonDefaults INSTANCE
```

## Public methods

### filledButtonColors

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

```
public final @NonNull ButtonColors filledButtonColors(@NonNull MaterialScope receiver)
```

`https://developer.android.com/reference/androidx/wear/protolayout/material3/ButtonColors` for the high-emphasis button representing the primary, most important or most common action on a screen.

These colors are using `https://developer.android.com/reference/androidx/wear/protolayout/material3/ColorScheme#primary()` for background color and `https://developer.android.com/reference/androidx/wear/protolayout/material3/ColorScheme#onPrimary()` for content color from the given `https://developer.android.com/reference/androidx/wear/protolayout/material3/MaterialScope`'s `https://developer.android.com/reference/androidx/wear/protolayout/material3/ColorScheme`.

### filledTonalButtonColors

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

```
public final @NonNull ButtonColors filledTonalButtonColors(@NonNull MaterialScope receiver)
```

`https://developer.android.com/reference/androidx/wear/protolayout/material3/ButtonColors` for the medium-emphasis button.

These colors are using `https://developer.android.com/reference/androidx/wear/protolayout/material3/ColorScheme#surfaceContainer()` for background color, `https://developer.android.com/reference/androidx/wear/protolayout/material3/ColorScheme#onSurface()` for content color and `https://developer.android.com/reference/androidx/wear/protolayout/material3/ColorScheme#primary()` for icon from the given `https://developer.android.com/reference/androidx/wear/protolayout/material3/MaterialScope`'s `https://developer.android.com/reference/androidx/wear/protolayout/material3/ColorScheme`.

### filledVariantButtonColors

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

```
public final @NonNull ButtonColors filledVariantButtonColors(@NonNull MaterialScope receiver)
```

Alternative `https://developer.android.com/reference/androidx/wear/protolayout/material3/ButtonColors` for the high-emphasis button.

These colors are using `https://developer.android.com/reference/androidx/wear/protolayout/material3/ColorScheme#primaryContainer()` for background color and `https://developer.android.com/reference/androidx/wear/protolayout/material3/ColorScheme#onPrimaryContainer()` for content color from the given `https://developer.android.com/reference/androidx/wear/protolayout/material3/MaterialScope`'s `https://developer.android.com/reference/androidx/wear/protolayout/material3/ColorScheme`.