For the complete documentation index, see llms.txt. This page is also available as Markdown.

Specific Actions

Here's a list of methods that could be useful if you want to interact further with our SDK (updating some data sets, overriding consent, etc)

Locally removes user consent, but not on the server (this will allow a new display of the CMP on the next call to presentNotice for example)

func clearConsent() 

Set external ids

Allows to define additional Ids that will be taken into account when validating user consent.

func setExternalIds(externalIds: [String: String]) -> Self

Example:

let externalsIds = ["customPersonalId": "abze43"]
appConsent.setExternalIds(externalIds: externalsIds)
  NSDictionary* infos = @{@"customPersonalId": @"abze43"};
  [self.appConsent setExternalIdsWithExternalIds:infos];

Once save locally, you can call saveExternalIds methods below to transmit the external ids.

Save external ids

This method transmit all our previous externalIds saved to our servers.

callback-based

func saveExternalIds(_ completion: ACTypedResultVoidHandler?)

Example:

appConsent.saveExternalIds { result in
            switch result {
                case .success:
                print("🔥 Save External Ids Successful")
            case .failure:
                print("🔥 Save External Ids Failure")
            }
        }
  NSDictionary* data = [self.appConsent getExternalIds];

modern concurrency

Not available

Get external ids

Retrieves your previously registered external ids

This method allows you to overwrite a given user consent based on your internal business rules.

It requires to build a ConsentOverride object that contains multiples optional properties that allows you to override consent for specific elements (purposes, specialPurposes, vendors, etc). Each property require is a list of ConsentStatus that is constructed with on your element Id, the consent status and the legintStatus (optional, default value: false) Callback-based

Not available

Modern concurrency

Not available

Save floating purposes

This method allows to save a consent on a floating purpose.

callback-based

Example:

Not available

modern concurrency

Not available

Force Accept All

This method allows forcing acceptance of all purposes

callback-based

Example:

modern concurrency

Not available

Force Deny All

This method allows forcing deny of all purposes

callback-based

Example:

modern concurrency

callback-based

Example:

Not available

modern concurrency

Not available

Last updated