Target filter
Search Kotlin docs
  • Back
  • Tealium Prism Kotlin SDK Reference
core/com.tealium.prism.core.api.misc/ExpiryPolicy

ExpiryPolicy

sealed class ExpiryPolicy : DataItemConvertible

Represents the Expiry Policy for a persisted data value. Unlike the Expiry class, which may hold a specific expiry time, the ExpiryPolicy produces an Expiry based on the current time when resolved.

Types

Companion
Link copied to clipboard
object Companion
Converter
Link copied to clipboard
object Converter : DataItemConverter<ExpiryPolicy>

Properties

value
Link copied to clipboard
val value: Long

Functions

asDataItem
Link copied to clipboard
open override fun asDataItem(): DataItem

Should return an instance of a DataItem that represents all required properties of the implementing class, such that it could be:

equals
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
open override fun hashCode(): Int
resolve
Link copied to clipboard
fun resolve(): Expiry

Resolves the ExpiryPolicy to an Expiry based on the current time.

Generated by Dokka
(c) Tealium 2026