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
- In your
Podfile.lock
add
$ pod 'SirdataCMP', '~> 1.0'
- Run in Terminal, in your project
$ pod install
- Open
yourApp.xcworkspace
and build
Carthage
- In your
Cartfile
add
github 'SirDataFR/sirdata-cmp-ios-sdk', '1.0'
- Run in Terminal, in your project
$ carthage update --platform iOS
- Reopen your project and add the framework
Manually
This solution doesn't update automatically the framework version.
- Download the package
- Add sirdata framework in your project :
your_app_name > BuildPhases > Link Binary With Libraries > +
- 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