# CustomFloatAttributes

Artifact: [androidx.constraintlayout:constraintlayout](https://developer.android.com/jetpack/androidx/releases/constraintlayout) [View Source](https://cs.android.com/search?q=file:androidx/constraintlayout/motion/widget/CustomFloatAttributes.java+class:androidx.constraintlayout.motion.widget.CustomFloatAttributes) Added in [2.2.2](https://developer.android.com/jetpack/androidx/releases/constraintlayout#2.2.2)

*** ** * ** ***


```
interface CustomFloatAttributes
```

<br />

*** ** * ** ***

Interface to custom float attributes

## Summary

| ### Public functions |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/motion/widget/CustomFloatAttributes#get(java.lang.String)(attribute: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!)` get the value of the attributes |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-array/index.html<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!>!` | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/motion/widget/CustomFloatAttributes#getListOfAttributes()()` Get list of attributes |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/motion/widget/CustomFloatAttributes#set(java.lang.String,float)(attribute: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!, value: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html)` set the attributes |

## Public functions

### get

Added in [2.2.2](https://developer.android.com/jetpack/androidx/releases/constraintlayout#2.2.2)

```
fun get(attribute: String!): Float
```

get the value of the attributes

| Parameters |
|---|---|
| `attribute: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` |   |

| Returns |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` |   |

### getListOfAttributes

Added in [2.2.2](https://developer.android.com/jetpack/androidx/releases/constraintlayout#2.2.2)

```
fun getListOfAttributes(): Array<String!>!
```

Get list of attributes

| Returns |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-array/index.html<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!>!` |   |

### set

Added in [2.2.2](https://developer.android.com/jetpack/androidx/releases/constraintlayout#2.2.2)

```
fun set(attribute: String!, value: Float): Unit
```

set the attributes

| Parameters |
|---|---|
| `attribute: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` |   |
| `value: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` |   |