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

addAnyOrNull

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

Unsafe shortcut to put any object into the DataObject. The any will attempt to be converted to a supported type. If no supported type is available, then DataItem.NULL will be returned.

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