# ContentValuesKt

Added in 1.1.0

*** ** * ** ***


```
public final class ContentValuesKt
```

<br />

*** ** * ** ***

## Summary

| ### Public methods |
|---|---|
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/android/content/ContentValues.html` | `https://developer.android.com/reference/androidx/core/content/ContentValuesKt#contentValuesOf(kotlin.Array)(@https://developer.android.com/reference/androidx/annotation/NonNull https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-pair/index.html<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html, https://developer.android.com/reference/java/lang/Object.html>... pairs)` Returns a new `https://developer.android.com/reference/android/content/ContentValues.html` with the given key/value pairs as elements. |

## Public methods

### contentValuesOf

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/content/ContentValues.kt+function:contentValuesOf)

```
public static final @NonNull ContentValues contentValuesOf(@NonNull Pair<@NonNull String, Object>... pairs)
```

Returns a new `https://developer.android.com/reference/android/content/ContentValues.html` with the given key/value pairs as elements.

| Throws |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-illegal-argument-exception/index.html` | When a value is not a supported type of `https://developer.android.com/reference/android/content/ContentValues.html`. |