# KeyValueBuilder

# KeyValueBuilder


```
public final class KeyValueBuilder
```

<br />

*** ** * ** ***

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

## Summary

| ### Public methods |
|---|---|
| `final void` | `https://firebase.google.com/docs/reference/android/com/google/firebase/crashlytics/KeyValueBuilder#key(kotlin.String,kotlin.Boolean)(@https://developer.android.com/reference/kotlin/androidx/annotation/NonNull.html https://developer.android.com/reference/kotlin/java/lang/String.html key, boolean value)` Sets a custom key and value that are associated with reports. |
| `final void` | `https://firebase.google.com/docs/reference/android/com/google/firebase/crashlytics/KeyValueBuilder#key(kotlin.String,kotlin.Double)(@https://developer.android.com/reference/kotlin/androidx/annotation/NonNull.html https://developer.android.com/reference/kotlin/java/lang/String.html key, double value)` Sets a custom key and value that are associated with reports. |
| `final void` | `https://firebase.google.com/docs/reference/android/com/google/firebase/crashlytics/KeyValueBuilder#key(kotlin.String,kotlin.Float)(@https://developer.android.com/reference/kotlin/androidx/annotation/NonNull.html https://developer.android.com/reference/kotlin/java/lang/String.html key, float value)` Sets a custom key and value that are associated with reports. |
| `final void` | `https://firebase.google.com/docs/reference/android/com/google/firebase/crashlytics/KeyValueBuilder#key(kotlin.String,kotlin.Int)(@https://developer.android.com/reference/kotlin/androidx/annotation/NonNull.html https://developer.android.com/reference/kotlin/java/lang/String.html key, int value)` Sets a custom key and value that are associated with reports. |
| `final void` | `https://firebase.google.com/docs/reference/android/com/google/firebase/crashlytics/KeyValueBuilder#key(kotlin.String,kotlin.Long)(@https://developer.android.com/reference/kotlin/androidx/annotation/NonNull.html https://developer.android.com/reference/kotlin/java/lang/String.html key, long value)` Sets a custom key and value that are associated with reports. |
| `final void` | `https://firebase.google.com/docs/reference/android/com/google/firebase/crashlytics/KeyValueBuilder#key(kotlin.String,kotlin.String)(@https://developer.android.com/reference/kotlin/androidx/annotation/NonNull.html https://developer.android.com/reference/kotlin/java/lang/String.html key, @https://developer.android.com/reference/kotlin/androidx/annotation/NonNull.html https://developer.android.com/reference/kotlin/java/lang/String.html value)` Sets a custom key and value that are associated with reports. |

## Public methods

### key

```
public final void key(@NonNull String key, boolean value)
```

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

### key

```
public final void key(@NonNull String key, double value)
```

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

### key

```
public final void key(@NonNull String key, float value)
```

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

### key

```
public final void key(@NonNull String key, int value)
```

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

### key

```
public final void key(@NonNull String key, long value)
```

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

### key

```
public final void key(@NonNull String key, @NonNull String value)
```

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