The Open Source CCPA String Builder, which is compliant with IAB 1.0 final doc: https://iabtechlab.com/wp-content/uploads/2019/11/U.S.-Privacy-String-v1.0-IAB-Tech-Lab.pdf
Currently supports only Swift language (5.0).
The CCPAStringBuilder consists of the
The usage example:
let privacyString = CCPAStringBuilder() .set(explicitOptOut: true) .set(optOutSale: true) .set(limitedServiceProviderAgreement: true) .build()
such usage will result in:
Each param could be set to
false, which will result in
N, accordingly. The unset param will generate the
- char. The first char is always
1, which is the IAB version specification.