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

get

fun get(index: Int): DataItem?

Gets the DataItem at the given index.

Return

DataItem found at the given index; or null if index not found.

Parameters

index

The index of the list entry to retrieve; starts at 0


fun <T> get(index: Int, converter: DataItemConverter<T>): T?

Gets the DataItem at the given index, and attempts to convert it into the type T using the provided DataItemConverter.

Return

The reconstructed instance of T; else null

Parameters

index

The key to use to lookup the item.

converter

The DataItemConverter to use to recreate the object of type T

Generated by Dokka
(c) Tealium 2026