# ModifiersBuilders.Corner

Artifact: [androidx.wear.protolayout:protolayout](https://developer.android.com/jetpack/androidx/releases/wear-protolayout) [View Source](https://cs.android.com/search?q=file:androidx/wear/protolayout/ModifiersBuilders.java+class:androidx.wear.protolayout.ModifiersBuilders.Corner) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/wear-protolayout#1.0.0)

*** ** * ** ***


```
@RequiresSchemaVersion(major = 1, minor = 0)
public final class ModifiersBuilders.Corner
```

<br />

*** ** * ** ***

The corner of a `https://developer.android.com/reference/androidx/wear/protolayout/LayoutElementBuilders.Box` element.

## Summary

| ### Nested types |
|---|
| `public final class https://developer.android.com/reference/androidx/wear/protolayout/ModifiersBuilders.Corner.Builder` Builder for `https://developer.android.com/reference/androidx/wear/protolayout/ModifiersBuilders.Corner` |

| ### Public methods |
|---|---|
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/wear/protolayout/ModifiersBuilders.CornerRadius` | `https://developer.android.com/reference/androidx/wear/protolayout/ModifiersBuilders.Corner#getBottomLeftRadius()()` Gets the radius for the bottom-left corner of either circular or elliptical shapes. |
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/wear/protolayout/ModifiersBuilders.CornerRadius` | `https://developer.android.com/reference/androidx/wear/protolayout/ModifiersBuilders.Corner#getBottomRightRadius()()` Gets the radius for the bottom-right corner of either circular or elliptical shapes. |
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/Nullable.html https://developer.android.com/reference/androidx/wear/protolayout/DimensionBuilders.DpProp` | `https://developer.android.com/reference/androidx/wear/protolayout/ModifiersBuilders.Corner#getRadius()()` Gets the radius of the corner in DP. |
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/wear/protolayout/ModifiersBuilders.CornerRadius` | `https://developer.android.com/reference/androidx/wear/protolayout/ModifiersBuilders.Corner#getTopLeftRadius()()` Gets the radius for the top-left corner of either circular or elliptical shapes. |
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/wear/protolayout/ModifiersBuilders.CornerRadius` | `https://developer.android.com/reference/androidx/wear/protolayout/ModifiersBuilders.Corner#getTopRightRadius()()` Gets the radius for the top-right corner of either circular or elliptical shapes. |
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/wear/protolayout/ModifiersBuilders.Corner#toString()()` |

## Public methods

### getBottomLeftRadius

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

```
public @NonNull ModifiersBuilders.CornerRadius getBottomLeftRadius()
```

Gets the radius for the bottom-left corner of either circular or elliptical shapes.

### getBottomRightRadius

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

```
public @NonNull ModifiersBuilders.CornerRadius getBottomRightRadius()
```

Gets the radius for the bottom-right corner of either circular or elliptical shapes.

### getRadius

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

```
public @Nullable DimensionBuilders.DpProp getRadius()
```

Gets the radius of the corner in DP.

### getTopLeftRadius

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

```
public @NonNull ModifiersBuilders.CornerRadius getTopLeftRadius()
```

Gets the radius for the top-left corner of either circular or elliptical shapes.

### getTopRightRadius

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

```
public @NonNull ModifiersBuilders.CornerRadius getTopRightRadius()
```

Gets the radius for the top-right corner of either circular or elliptical shapes.

### toString

```
public @NonNull String toString()
```