PersistentData Module
Allows data variables to be stored on disk, and automatically adds them to each dispatch/tracking call.
Usage
The PersistentData module stores variables on disk and automatically includes them in each tracking call. Usage of this module is recommended.
The following platforms are supported:
- iOS
- tvOS
- watchOS
- macOS
Install
Install the PersistentData module with CocoaPods or Carthage.
CocoaPods
To install the PersistentData module with CocoaPods, add the following to your Podfile:
pod 'tealium-swift/TealiumPersistentData'
The framework is auto-instantiated. It has a dependency on the TealiumCore
pod. Learn more about CocoaPods installation for iOS.
Carthage
To install the PersistentData module with Carthage, following these steps:
-
Go to the app target’s General configuration page in Xcode.
-
Add the following framework to the Embedded Binaries section:
TealiumPersistentData.framework
-
Add the following import statement to your helper file:
import TealiumPersistentData
The framework is auto-instantiated. It has a dependency on TealiumCore
. Learn more about Carthage installation for iOS.
API Reference
See the TealiumPersistentData
class in the iOS (Swift) API.
This page was last updated: January 7, 2023