iOS: Methods
iOS: Methods
CMP UI methods
Show the consent interface from our app in another section
sibboCMP.showConsentTool(fromController: self, forceOpen: true, completion: { showed in
})
Obtaining consents methods
Get consent string
sibboCMP.getConsentString()
Returns the consent string, if there is no consent string returns null
Get the consent status of any vendor from the IAB
Example with provider “Amobee, Inc.” which is the id 23:
bool status = sibboCMP.isConsentVendorStatus(vendor: 23)
Returns true if you have consent, false if you don't.
Obtain the consent status of a third-party vendor
Example with “googleConsent” provider:
bool status = sibboCMP.isThirdDataConsentVendorStatus(vendorAlias: "googleConsent")
Returns true if you have consent, false if you don't.