You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
chore(artifacts): Updating the group name of the published artifact. (#16)
* chore(artifacts): Updating the group name of the published artifact.
* docs(README): Add getting started section.
* docs(README): Clean up sample code
Copy file name to clipboardExpand all lines: README.md
+33Lines changed: 33 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,6 +3,39 @@
3
3
This plugin provides the framework to integration Consent Management Platform (CMP) SDKs like OneTrust to supply consent status and potential block events going to device mode destinations.
4
4
5
5
6
+
## Getting Started
7
+
8
+
Add the consent denpendency (which has recently changed):
val consentCategoryProvider =MyCmpConsentCategoryProvider(myCmpInstance)
24
+
val store =SynchronousStore()
25
+
26
+
val consentPlugin =ConsentManager(store, consentCategoryProvider)
27
+
28
+
analytics.add(consentPlugin)
29
+
30
+
// Call this to start event flow.
31
+
// NOTE: You might want to wait until CMP is ready before you call start()
32
+
// so that events are held until the CMP is ready to provide the
33
+
// current consent status.
34
+
consentPlugin.start()
35
+
```
36
+
37
+
38
+
6
39
## Background
7
40
8
41
Consent Management is the management of a user’s consent preferences related to privacy. You might be familiar with the Privacy Pop-ups that have become mandated recently that ask the user if he or she consents to the use of certain category of cookies:
0 commit comments