Thunderhead SDK 7.+ adds a number of new features.
Support for deprecated optOut
method from Thunderhead ONE or Salesforce Interaction Studio has been removed starting with Thunderhead SDK 7.0.0. If you're using the method, you need to use the new opt out/in method introduced in Thunderhead SDK 5.3.0.
- optOut: or opt(out:)
To opt out an end-user from all tracking, call the opt out method as shown below:
Swift:
One.opt(.out, forOptions: .allTracking)
Objective-C:
[One opt:Out forOptions:AllTracking];
To opt in an end-user for all tracking, call the opt in method as shown below:
Swift:
One.opt(.in, forOptions: .allTracking)
Objective-C:
[One opt:In forOptions:AllTracking];