SirdataCMP 1.3.1

SirdataCMP 1.3.1

Maintained by Sirdata.



  • By
  • Sirdata

Framework SIRDATA CMP

The SIRDATA CMP Framework simplify CMP integration on your app. This framework based on technical specifications describe by IAB Europe Transparency and Consent Framework (TCF). It is comply with EU General Data Protection Regulation (GDPR friendly).

Our framework is easy to use. You can download the package or use CocoaPods. The both process are details after.

Features


  • CMP Pop up
  • CMP configuration

Requirements


  • iOS 8.0+
  • Swift 5

Installation


CocoaPods
  1. In your Podfile.lock add
$ pod 'SirdataCMP', '~> 1.0' 
  1. Run in Terminal, in your project
$ pod install
  1. Open yourApp.xcworkspace and build
Carthage
  1. In your Cartfile add
 github 'SirDataFR/sirdata-cmp-ios-sdk', '1.0' 
  1. Run in Terminal, in your project
$ carthage update --platform iOS
  1. Reopen your project and add the framework
Manually

This solution doesn't update automatically the framework version.

  1. Download the package
  2. Add sirdata framework in your project : your_app_name > BuildPhases > Link Binary With Libraries > +
  3. Run your project

Usages


Display CMP instantly after open the app
  • In mainController
override func viewDidLoad() {
        super.viewDidLoad()

        sirdataCMP = SirdataCMP.init()
        sirdataCMP.loadCMP(viewController: self)
    }
Display CMP after an action event like click or swip

sirdataCMP.reloadCMP(viewController: self)

Customization

If you want customize your CMP add, in parameters, configuration when you instanciate sirdataCMP = SirdataCMP.init(config: paramsCMP())


func paramsCMP() -> Config {
        let configCMP = Config.init()
        configCMP.setBackgroundColor(backgroundColor: "#E8E0C3")
        configCMP.setNoConsentButton(noConsentButton: ConfigTheme.noConsentButtonValue.refuse)
        configCMP.setGooglePersonalizedAds(personalizedAds: true)
        configCMP.setDisplayCappingInDays(displayCappingInDays: 3)
        return configCMP
    }

Communcation

@Sirdata