core-ktx / androidx.content / contentValuesOf

contentValuesOf

fun contentValuesOf(vararg pairs: Pair<String, Any?>): ContentValues

Returns a new ContentValues with the given key/value pairs as elements.

Exceptions

IllegalArgumentException - When a value is not a supported type of ContentValues.