# LayoutElementBuilders.FontVariantProp

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/LayoutElementBuilders.java+class:androidx.wear.protolayout.LayoutElementBuilders.FontVariantProp) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/wear-protolayout#1.0.0)

*** ** * ** ***


```
@RequiresSchemaVersion(major = 1, minor = 0)
@ProtoLayoutExperimental
public final class LayoutElementBuilders.FontVariantProp
```

<br />

*** ** * ** ***

An extensible `FontVariant` property.

## Summary

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

| ### Public methods |
|---|---|
| `int` | `https://developer.android.com/reference/androidx/wear/protolayout/LayoutElementBuilders.FontVariantProp#getValue()()` Gets the value. |
| `@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/LayoutElementBuilders.FontVariantProp#toString()()` |

## Public methods

### getValue

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

```
public int getValue()
```

Gets the value.

### toString

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