Target filter
Search Kotlin docs
  • Back
  • Tealium Prism Kotlin SDK Reference
extensions/com.tealium.prism.extensions.api.persistdatavalue/UpdatePolicy

UpdatePolicy

enum UpdatePolicy : Enum<UpdatePolicy> , DataItemConvertible

Defines the update policy for a persisted data value

Entries

ALLOW_UPDATE
Link copied to clipboard
ALLOW_UPDATE

Allows the value to be updated with new values. This is the default policy if not specified.

KEEP_FIRST_VALUE
Link copied to clipboard
KEEP_FIRST_VALUE

Prevents the value from being updated once it has been set. If a value already exists, it will not be overwritten.

Types

Converter
Link copied to clipboard
object Converter : DataItemConverter<UpdatePolicy>

Properties

entries
Link copied to clipboard
val entries: EnumEntries<UpdatePolicy>

Returns a representation of an immutable list of all enum entries, in the order they're declared.

name
Link copied to clipboard
val name: String
ordinal
Link copied to clipboard
val ordinal: Int
policy
Link copied to clipboard
val policy: String

Functions

asDataItem
Link copied to clipboard
open override fun asDataItem(): DataItem
valueOf
Link copied to clipboard
fun valueOf(value: String): UpdatePolicy

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

values
Link copied to clipboard
fun values(): Array<UpdatePolicy>

Returns an array containing the constants of this enum type, in the order they're declared.

Generated by Dokka
(c) Tealium 2026