• Help
  • Back
  • Tealium Prism Swift SDK Reference
    • Tealium
      • Tealium
      • TealiumConfig
      • TealiumError
      • TealiumInstanceManager
      • CoreSettings
      • CoreSettingsBuilder
    • Modules
      • Modules
      • – Types
      • AppData
      • Collect
      • ConnectivityData
      • ContextAPI
      • DataLayer
      • DeepLinkHandler
      • DeviceData
      • Lifecycle
      • TealiumData
      • TimeData
      • Trace
      • VisitorIdManager
      • CustomModules
    • AppData Module
      • AppDataSettingsBuilder
    • Collect Module
      • CollectSettingsBuilder
    • ConnectivityData Module
      • ConnectivityDataSettingsBuilder
    • Consent
      • ConsentConfigurationBuilder
      • ConsentDecision
      • – DecisionType
      • CMPAdapter
    • ContextAPI Module
      • EngineResponse
      • ContextAPIError
      • ContextAPIRegion
      • ContextAPISettingsBuilder
    • DataLayer Module
      • DataLayerSettingsBuilder
      • DataStoreTransaction
    • DeepLinkHandler Module
      • DeepLinkSettingsBuilder
      • Referrer
    • DeviceData Module
      • DeviceDataSettingsBuilder
    • Lifecycle Module
      • LifecycleDataTarget
      • LifecycleError
      • LifecycleEvent
      • LifecycleSettingsBuilder
    • TealiumData Module
      • TealiumDataSettingsBuilder
    • TimeData Module
      • TimeDataSettingsBuilder
    • Trace Module
      • TraceSettingsBuilder
    • VisitorId Module
      • VisitorIdProvider
      • VisitorIdSettingsBuilder
    • Transformations
      • SetDataValues
      • PersistDataValue
      • Lowercase
      • JavaScript
    • SetDataValues Transformation
      • SetDataValuesSettingsBuilder
    • PersistDataValue Transformation
      • PersistDataValueSettingsBuilder
      • UpdatePolicy
    • Lowercase Transformation
      • LowercaseSettingsBuilder
    • JavaScript Transformation
      • JavaScriptTransformationSettingsBuilder
    • Rules
      • Rule
      • RuleModuleSettingsBuilder
      • RuleNotFoundError
      • Condition
      • – Operator
      • ConditionEvaluationError
      • InvalidMatchError
    • Barriers
      • Barriers
      • Barrier
      • BarrierFactory
      • BarrierRegistrar
      • BarrierScope
      • BarrierSettingsBuilder
      • BarrierState
      • BatchingBarrierSettingsBuilder
      • ConfigurableBarrier
      • ConnectivityBarrierSettingsBuilder
    • Module
      • Module
      • BasicModule
      • BasicModuleFactory
      • ModuleError
      • ModuleFactory
      • ModuleManager
      • ModuleProxy
      • ModuleSettingsBuilder
      • ModuleStoreProvider
      • MultipleInstancesModuleSettingsBuilder
      • Collector
      • CollectorSettingsBuilder
      • CommandDispatcher
      • Dispatcher
      • DispatcherSettingsBuilder
      • TealiumContext
      • CommandMappingsBuilder
      • Mappings
      • – VariableOptions
      • – ConstantOptions
      • – CommandOptions
      • MappingsBuilder
    • Transformation
      • TransformationScope
      • TransformationSettings
      • TransformationSettingsBuilder
      • Transformer
      • TransformerRegistrar
    • Data
      • DataInput
      • DataInputConvertible
      • DataItem
      • DataItemConverter
      • DataItemExtractor
      • DataObject
      • DataObjectConvertible
      • DataStore
      • DataStoreEdit
      • DataStoreEditor
      • DatabaseError
      • Expiry
      • ExpiryPolicy
      • Dispatch
      • DispatchContext
      • – Source
      • DispatchType
      • JSONArrayPath
      • JSONObjectPath
      • JSONObjectPathConvertible
      • JSONParsingError
      • JSONPath
      • JSONPathExtractable
      • JSONPathParseError
      • ArrayRoot
      • ObjectRoot
      • PathRoot
      • ReferenceContainer
      • StringContainer
      • ValueContainer
      • AnyCodable
      • AnyDecodable
      • AnyEncodable
    • PubSub
      • Observable
      • ObservableConvertible
      • ObservableState
      • Observables
      • ReplaySubject
      • StateSubject
      • Subject
      • Single
      • SingleResult
      • CompositeDisposable
      • Disposable
      • Disposables
      • Subscribable
      • ValueExtractor
    • Network
      • NetworkClient
      • NetworkConnection
      • – ConnectionType
      • NetworkError
      • NetworkErrorType
      • NetworkHelperProtocol
      • NetworkResponse
      • NetworkResult
      • NetworkUtilities
      • ConnectivityManager
      • ConnectivityManagerProtocol
      • RequestInterceptor
      • RequestInterceptors
      • RefreshParameters
      • ResourceRefresher
      • RequestBuilder
      • – HTTPMethod
      • ResourceCacher
      • RetryAfterAboveMaxDelay
      • RetryPolicy
      • URL
      • URLComponents
      • URLConvertible
      • ErrorCooldown
      • ObjectResponse
      • ObjectResult
    • Logging
      • LogCategory
      • LogHandler
      • LogLevel
      • – Minimum
      • LoggerProtocol
      • TealiumLoggerType
      • OSSignpostIntervalState
      • SignpostStateWrapper
      • TealiumSignpostInterval
      • TealiumSignposter
    • Other Classes
      • ApplicationStatusListener
      • RepeatingTimer
      • SelfDestructingCompletion
      • SelfDestructingResultCompletion
      • SyncCommand
      • TealiumDispatchGroup
      • TealiumQueue
      • TemplateProcessor
    • Other Enumerations
      • CommandError
      • ConversionError
      • LenientConverters
      • StringUtils
      • TealiumConstants
      • TealiumDataKey
      • TimeUnit
      • ValueSource
    • Other Extensions
      • Array
      • Bool
      • Decimal
      • Dictionary
      • Double
      • Float
      • Int
      • Int64
      • NSNull
      • NSNumber
      • Optional
      • Result
      • String
      • [String: DataInput]
      • [String: DataItem]
    • Other Functions
      • +(_:_:)
      • +=(_:_:)
    • Other Protocols
      • Command
      • CommandName
      • ErrorEnum
      • ErrorExtractor
      • ErrorWrapping
      • Observer
      • QueueMetrics
      • Repeater
      • SessionRegistry
      • Tracker
    • Other Structures
      • ApplicationStatus
      • – StatusType
      • Session
      • – Status
      • Template
      • TimeFrame
      • TrackResult
      • – Status
    • Other Type Aliases
      • InitializationResult
      • TrackResultCompletion
  • Tealium for Swift SDK Reference

Network Reference

  • NetworkClient

    Protocol for sending network requests and handling responses.

    See more

    Declaration

    Swift

    public protocol NetworkClient
  • NetworkConnection

    The connection as it’s reported by the system monitors

    See more

    Declaration

    Swift

    public enum NetworkConnection : Equatable
  • NetworkError

    An error returned from an http request.

    See more

    Declaration

    Swift

    public struct NetworkError : Error
  • NetworkErrorType

    An error reported by the NetworkClient.

    See more

    Declaration

    Swift

    public enum NetworkErrorType : Error, ErrorEnum
  • NetworkHelperProtocol

    Protocol defining methods for common, uncompressed network operations.

    Implementations are a short-circuit for standard requests only; bodies are never compressed. For gzip or otherwise customized requests, use NetworkClient with a RequestBuilder.

    See more

    Declaration

    Swift

    public protocol NetworkHelperProtocol
  • NetworkResponse

    A successful response returned by the NetworkClient

    See more

    Declaration

    Swift

    public struct NetworkResponse
  • NetworkResult From TealiumPrismCore

    A successful Result with a NetworkResponse or a failed Result with NetworkError, returned by the NetworkClient

    Declaration

    Swift

    public typealias NetworkResult = Result<NetworkResponse, NetworkError>
  • NetworkUtilities

    Groups the networking utilities for a given Tealium instance onto a single object.

    networkClient and networkHelper make a single attempt for each request and never retry it. Every response still feeds the empirical connectivity of the connectivityManager.

    To retry failed requests, derive a client with NetworkClient.newClient(withAdditionalInterceptors:), adding RequestInterceptors.retryWithBackoff() to retry retryable failures with a backoff and/or RequestInterceptors.retryWhenConnected(connectivityManager:) to wait for connectivity to return before retrying. Use NetworkClient.makeNetworkHelper() to send requests through the derived client with the NetworkHelperProtocol API.

    See more

    Declaration

    Swift

    public final class NetworkUtilities
  • ConnectivityManager

    A manager that handles system connectivity monitor and empirical connectivity monitor to establish when connectivity is actually available or not on the device.

    See connectionAssumedAvailable for how the two are combined.

    See more

    Declaration

    Swift

    public class ConnectivityManager : ConnectivityManagerProtocol, RequestInterceptor
  • ConnectivityManagerProtocol

    Protocol for managing network connectivity state and monitoring.

    See more

    Declaration

    Swift

    public protocol ConnectivityManagerProtocol
  • RequestInterceptor

    Protocol for intercepting and handling network requests and responses.

    See more

    Declaration

    Swift

    public protocol RequestInterceptor : AnyObject
  • RequestInterceptors

    Factories for the built-in RequestInterceptors that add retry behavior to a NetworkClient.

    Pass the created interceptors to NetworkClient.newClient(withAdditionalInterceptors:maxRetryCount:). Interceptors are consulted in reverse order, so add retryWhenConnected(connectivityManager:) last: it is then asked first and, while the connection is assumed unavailable, waits for it instead of letting retryWithBackoff(...) use up its attempts:

    let client = context.network.networkClient.newClient(withAdditionalInterceptors: [
        RequestInterceptors.retryWithBackoff(maxAttempts: 3),
        RequestInterceptors.retryWhenConnected(connectivityManager: context.network.connectivityManager)
    ], maxRetryCount: 10)
    
    See more

    Declaration

    Swift

    public enum RequestInterceptors
  • RefreshParameters

    Parameters for configuring a resource refresher.

    See more

    Declaration

    Swift

    public struct RefreshParameters
  • ResourceRefresher

    An object that refreshes a single resource at regular intervals.

    Refresh is requested by the user of ths class, but it’s ignored unless the required intervals have passed. The resource is cached locally and it’s re-read only on initialization or when subscribing onResourceLoaded.

    You can listen to resource updates by using the onResourceLoaded observable. This will first push an event with a resource read from disk, if present, and then all refreshes from remote.

    See more

    Declaration

    Swift

    public class ResourceRefresher<Resource> where Resource : Decodable, Resource : Encodable
  • RequestBuilder

    A builder for URLRequests to send through a NetworkClient.

    Use the makePOST(url:json:) / makeGET(url:etag:) factories to start a request, chain the builder methods to configure it, and hand the builder to NetworkClient.sendRequest(_:completion:) (which builds it for you). Request bodies are uncompressed by default; opt into gzip compression with gzip().

    See more

    Declaration

    Swift

    public class RequestBuilder
    extension RequestBuilder: CustomStringConvertible
  • ResourceCacher

    A storage to persist a resource and it’s etag, when available.

    Resource is stored in the DataStore at the provided fileName, while the etag will be stored at \(fileName)_etag

    See more

    Declaration

    Swift

    public class ResourceCacher<Resource> where Resource : Decodable, Resource : Encodable
  • RetryAfterAboveMaxDelay

    What to do when a Retry-After header is above the maximum delay allowed for a retry.

    See more

    Declaration

    Swift

    public enum RetryAfterAboveMaxDelay
  • RetryPolicy

    The policy, returned by a RequestInterceptor that the NetworkClient should apply on a given NetworkResponse.

    See more

    Declaration

    Swift

    public enum RetryPolicy
  • URL
    See more

    Declaration

    Swift

    From TealiumPrismCore:
    extension URL: URLConvertible
  • URLComponents
    See more

    Declaration

    Swift

    From TealiumPrismCore:
    extension URLComponents: URLConvertible
  • URLConvertible

    A protocol used to receive requests with String/URL/URLComponents intercheangebly

    See more

    Declaration

    Swift

    public protocol URLConvertible
  • ErrorCooldown From TealiumPrismCore

    An object that increases a cooldown for every error event, and resets the cooldown to 0 when a non-error event happens.

    Declaration

    Swift

    public class ErrorCooldown
  • ObjectResponse

    A response containing a decoded object and the HTTP response.

    See more

    Declaration

    Swift

    public struct ObjectResponse<T>
  • ObjectResult From TealiumPrismCore

    A result type for object responses.

    Declaration

    Swift

    public typealias ObjectResult<T> = Result<ObjectResponse<T>, NetworkError>

© 2026 Tealium. All rights reserved. (Last updated: 2026-10-16)

Generated by jazzy ♪♫ v0.15.4, a Realm project.