Skip to content
This repository has been archived by the owner on Aug 17, 2023. It is now read-only.

Latest commit

 

History

History
38 lines (26 loc) · 955 Bytes

GITHUB-THUNDERHEAD-7.0.0-MIGRATION-GUIDE.md

File metadata and controls

38 lines (26 loc) · 955 Bytes

Thunderhead iOS SDK Migration Guide

Thunderhead SDK 6.* to 7.*

Thunderhead SDK 7.+ adds a number of new features.

optOut method

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];