Target filter
Search Kotlin docs
  • Platforms
  • Tealium Prism Kotlin
core/com.tealium.prism.core.api.data/DataList/Builder/addAny

addAny

@JvmOverloads
fun addAny(any: Any?, index: Int = DEFAULT_INDEX): DataList.Builder

Unsafe shortcut to put any object into the DataList.Builder. The any will attempt to be converted to a supported type. If an unsupported type is found, then this method with throw.

Return

The current Builder instance.

Parameters

any

The object instance to convert and add

index

Optional list index to insert the item at

Generated by Dokka
(c) Tealium 2026