library / org.akop.kotx.ext.content / contentValuesOf

contentValuesOf

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

Creates a ContentValues by reading pairs - similarly to how mapOf and similar methods work.

Note that value types are limited to those acceptable by ContentValues - specifically, String, Byte, Short, Int, Long, Float, Double, Boolean, ByteArray.