Target filter
Search Kotlin docs
  • Platforms
  • Tealium Prism Kotlin
core/com.tealium.prism.core.api.settings/Mappings/mapConstant

mapConstant

abstract fun mapConstant(value: DataItem, destination: String): Mappings.ConstantOptions

Adds a mapping where the value to map is given by the constant value and will be mapped to the given destination

Returns a ConstantOptions with which to configure some options if required.

Parameters

value

The constant value to map to the given destination

destination

The destination key to store the mapped value


abstract fun mapConstant(value: DataItem, destination: JsonObjectPath): Mappings.ConstantOptions

Adds a mapping where the value to map is given by the constant value and will be mapped to the given destination located/stored at some configured level of nesting as defined by the JsonObjectPath.

Returns a ConstantOptions with which to configure some options if required.

Parameters

value

The constant value to map to the given destination

destination

The destination key to store the mapped value

Generated by Dokka
(c) Tealium 2026