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

get

abstract fun get(key: String): Single<TealiumResult<DataItem?>>

Gets a single DataItem if available.

Return

A Single which can be used to subscribe a block of code to receive the result

Parameters

key

The identifier for the requested DataItem


abstract fun <T> get(key: String, converter: DataItemConverter<T>): Single<TealiumResult<T?>>

Retrieves a value of type T at the given key using the provided converter to convert from a DataItem to an instance of T

The callback will receive the value of T or null if the value could not be converted. The result will be received on the Tealium thread.

Return

A Single which can be used to subscribe a block of code to receive the result

Parameters

key

The key to retrieve the value from

converter

The DataItemConverter implementation for reconstituting the value

Generated by Dokka
(c) Tealium 2026