BarrierFactory
public protocol BarrierFactory<BarrierType>
The [BarrierFactory] is responsible for creating new [ConfigurableBarrier] instances.
-
The specific
ConfigurableBarrierthat this factory can create.Declaration
Swift
associatedtype BarrierType : ConfigurableBarrier -
defaultScope()Default implementationThe default
BarrierScopeto use when no scope is provided by any settings source.Note
The protocol extension returns.allif not overridden, which applies the barrier to all dispatchers. Override this when a narrower default scope is appropriate for yourBarrierimplementation.Default Implementation
Declaration
Swift
func defaultScope() -> BarrierScope -
Creates a
ConfigurableBarrierinstance using the givencontextandconfiguration.Declaration
Swift
func create(context: TealiumContext, configuration: DataObject) -> BarrierType -
getEnforcedSettings()Default implementationReturns some optional settings for this barrier that override any other Local or Remote settings fields.
Only the values at the specific keys returned in this Dictionary will be enforced and remain constant during the life of this
Barrier. Other values at other keys that are not present in this Dictionary can be set by Local or Remote settings and be updated by future Remote settings refreshes during the life of thisBarrier.Default Implementation
Declaration
Swift
func getEnforcedSettings() -> DataObjectReturn Value
A
DataObjectrepresenting theBarrierSettings, containing some of the settings used by theBarrierthat will be enforced and remain constant during the life of thisBarrier.
View on GitHub