# KeyValueBuilder

# KeyValueBuilder


```
class KeyValueBuilder
```

<br />

*** ** * ** ***

Helper class to enable convenient syntax in `https://firebase.google.com/docs/reference/kotlin/com/google/firebase/crashlytics/package-summary#(com.google.firebase.crashlytics.FirebaseCrashlytics).setCustomKeys(kotlin.Function1)` and `https://firebase.google.com/docs/reference/kotlin/com/google/firebase/crashlytics/package-summary#(com.google.firebase.crashlytics.FirebaseCrashlytics).recordException(kotlin.Throwable,kotlin.Function1)`

## Summary

| ### Public functions |
|---|---|
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html` | `https://firebase.google.com/docs/reference/kotlin/com/google/firebase/crashlytics/KeyValueBuilder#key(kotlin.String,kotlin.Boolean)(key: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html, value: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)` Sets a custom key and value that are associated with reports. |
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html` | `https://firebase.google.com/docs/reference/kotlin/com/google/firebase/crashlytics/KeyValueBuilder#key(kotlin.String,kotlin.Double)(key: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html, value: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-double/index.html)` Sets a custom key and value that are associated with reports. |
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html` | `https://firebase.google.com/docs/reference/kotlin/com/google/firebase/crashlytics/KeyValueBuilder#key(kotlin.String,kotlin.Float)(key: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html, value: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-float/index.html)` Sets a custom key and value that are associated with reports. |
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html` | `https://firebase.google.com/docs/reference/kotlin/com/google/firebase/crashlytics/KeyValueBuilder#key(kotlin.String,kotlin.Int)(key: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html, value: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)` Sets a custom key and value that are associated with reports. |
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html` | `https://firebase.google.com/docs/reference/kotlin/com/google/firebase/crashlytics/KeyValueBuilder#key(kotlin.String,kotlin.Long)(key: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html, value: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html)` Sets a custom key and value that are associated with reports. |
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html` | `https://firebase.google.com/docs/reference/kotlin/com/google/firebase/crashlytics/KeyValueBuilder#key(kotlin.String,kotlin.String)(key: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html, value: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)` Sets a custom key and value that are associated with reports. |

## Public functions

### key

```
fun key(key: String, value: Boolean): Unit
```

Sets a custom key and value that are associated with reports.

### key

```
fun key(key: String, value: Double): Unit
```

Sets a custom key and value that are associated with reports.

### key

```
fun key(key: String, value: Float): Unit
```

Sets a custom key and value that are associated with reports.

### key

```
fun key(key: String, value: Int): Unit
```

Sets a custom key and value that are associated with reports.

### key

```
fun key(key: String, value: Long): Unit
```

Sets a custom key and value that are associated with reports.

### key

```
fun key(key: String, value: String): Unit
```

Sets a custom key and value that are associated with reports.