core-ktx / androidx.os / persistableBundleOf

persistableBundleOf

fun persistableBundleOf(vararg pairs: Pair<String, Any?>): PersistableBundle

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

Exceptions

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