Target filter
Search Kotlin docs
  • Back
  • Tealium Prism Kotlin SDK Reference
core-ktx/com.tealium.prism.core.ktx

Package-level declarations

Contains additional method definitions specifically aimed at Kotlin callers - they are intended for easy integration or interoperability with other common Kotlin features, such as coroutines.

Functions

asFlow
Link copied to clipboard
fun <T> Subscribable<T>.asFlow(): Flow<T>

Converts this Subscribable into a cold Flow.

asStateFlow
Link copied to clipboard
fun <T> SubscribableState<T>.asStateFlow(scope: CoroutineScope): StateFlow<T>

Converts this SubscribableState into a StateFlow.

await
Link copied to clipboard
suspend fun <T> Single<TealiumResult<T>>.await(): T

Suspends until the Single emits its result, then returns the unwrapped success value.

awaitResult
Link copied to clipboard
suspend fun <T> Single<TealiumResult<T>>.awaitResult(): TealiumResult<T>

Suspends until the Single emits its result, returning the full TealiumResult.

collect
Link copied to clipboard
suspend fun <T> Subscribable<T>.collect(collector: FlowCollector<T>)

Collects all emissions from this Subscribable by converting it to a Flow and collecting with the given collector.

Generated by Dokka
(c) Tealium 2026