core-ktx / androidx.os / bundleOf

bundleOf

fun bundleOf(vararg pairs: Pair<String, Any?>): Bundle

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

Exceptions

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