# TypeBuilders.FloatProp

# TypeBuilders.FloatProp

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

*** ** * ** ***

Kotlin\|[Java](https://developer.android.com/reference/androidx/wear/protolayout/TypeBuilders.FloatProp "View this page in Java")

<br />

```
@RequiresSchemaVersion(major = 1, minor = 0)
class TypeBuilders.FloatProp
```

<br />

*** ** * ** ***

A float type.

## Summary

|                                                                                                                             ### Nested types                                                                                                                              |
|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `class `[TypeBuilders.FloatProp.Builder](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/TypeBuilders.FloatProp.Builder) Builder for[FloatProp](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/TypeBuilders.FloatProp) |

|                                                                ### Public functions                                                                 |
|-----------------------------------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [DynamicBuilders.DynamicFloat](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/expression/DynamicBuilders.DynamicFloat)`?` | [getDynamicValue](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/TypeBuilders.FloatProp#getDynamicValue())`()` Gets the dynamic value. |
| [Float](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html)                                                                     | [getValue](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/TypeBuilders.FloatProp#getValue())`()` Gets the static value.                |
| [String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)                                                                   | [toString](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/TypeBuilders.FloatProp#toString())`()`                                       |

## Public functions

### getDynamicValue

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

```
fun getDynamicValue(): DynamicBuilders.DynamicFloat?
```

Gets the dynamic value. Note that when setting this value, the static value is still required to be set to support older renderers that only read the static value. If`
dynamicValue`has an invalid result, the provided static value will be used instead.  

### getValue

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

```
fun getValue(): Float
```

Gets the static value. If a dynamic value is also set and the renderer supports dynamic values for the corresponding field, this static value will be ignored. If the static value is not specified, zero will be used instead.  

### toString

```
fun toString(): String
```