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

BarrierScope

sealed class BarrierScope : DataItemConvertible

The BarrierScope defines the available scope that can be assigned to a Barrier via a BarrierSettings

There are only two available scopes that a Barrier can impact:

  • All

  • Dispatchers

A Barrier scoped to All will be checked for its state for every Dispatcher before dispatching events to it. A Barrier scoped to Dispatcher will only be checked for its state before dispatching events to the Dispatchers identified by the provided dispatcherIds.

Inheritors

All
Dispatchers

Types

All
Link copied to clipboard
object All : BarrierScope

This BarrierScope will affect all Dispatcher implementations.

Converter
Link copied to clipboard
object Converter : DataItemConverter<BarrierScope>
Dispatchers
Link copied to clipboard
data class Dispatchers(val dispatcherIds: List<String>) : BarrierScope

This BarrierScope will only affect the Dispatcher implementations with the matching Dispatcher.id values provided in the dispatcherIds list.

Functions

asDataItem
Link copied to clipboard
abstract fun asDataItem(): DataItem

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

Generated by Dokka
(c) Tealium 2026