Persistent module
Coordinates
Section titled “Coordinates”- CocoaPods subspec:
pod 'AffiseModule/Persistent', '1.7.8'—AffiseModule.podspec:45-47. - SwiftPM product:
AffiseModulePersistent—Package.swift:17.
Purpose
Section titled “Purpose”From the README:
Uses Apple
Securityframework to store protected information in user account. Persistdevice idvalue for Get random device Id on application reinstall.
Public API
Section titled “Public API”@objc(AffisePersistentModule)public final class PersistentModule: AffiseModule, AffisePersistentApi— AffiseModule/Persistent/Classes/PersistentModule.swift:4-5.
public func set(_ tag: String, _ value: String) -> Bool—PersistentModule.swift:11public func get(_ tag: String) -> String?—PersistentModule.swift:15public func getOrCreate(_ tag: String, _ value: String) -> String—PersistentModule.swift:19
Protocol
Section titled “Protocol”public protocol AffisePersistentApi: AffiseModuleApi — AffiseAttributionLib/Classes/modules/persistent/AffisePersistentApi.swift:3 (not @objc).
Related
Section titled “Related”- Device info — the device id returned by
getRandomDeviceId()is the value persisted by this module.