iOS: Methods

iOS: Methods

CMP UI methods

  1. sibboCMP.showConsentTool(fromController: self, forceOpen: true, completion: { showed in                                                 
  2. })

Obtaining consents methods

  1. sibboCMP.getConsentString()
Returns the consent string, if there is no consent string returns null


Example with provider “Amobee, Inc.” which is the id 23:
  1. bool status = sibboCMP.isConsentVendorStatus(vendor: 23)                                                                                                     
Returns true if you have consent, false if you don't.


Example with “googleConsent” provider:
  1. bool status = sibboCMP.isThirdDataConsentVendorStatus(vendorAlias: "googleConsent")                                                          
Returns true if you have consent, false if you don't.