Target filter
Search Kotlin docs
  • Platforms
  • Tealium Prism Kotlin
core/com.tealium.prism.core.api.pubsub/ObservableState/mapState

mapState

open fun <R> mapState(transform: (T) -> R): ObservableState<R>

Transforms the emissions and state of an existing ObservableState instance to a different type. Typically useful for extracting sub-properties of an existing ObservableState.

Return

a new ObservableState emitting the new values of R

Parameters

transform

The transformation block to convert T to a new type R

Generated by Dokka
(c) Tealium 2026