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
Copy file name to clipboardExpand all lines: README.md
+47-29Lines changed: 47 additions & 29 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,10 +1,8 @@
1
1
# Consent SDK for Android
2
2
3
-
Obtaining explicit user consent with gathering analytics data in an app, or with processing user’s personal data is important part of establishing user trust and seamless user experience.
3
+
Obtaining explicit user consent regarding the gathering analytics data in an app, or with processing user’s personal data is an important part of establishing user trust and seamless user experience.
4
4
5
-
Although implementing some dialog to obtain user consents and store them for further reference seems pretty straightforward, digging into it reveals (as usual with “simple tasks”) many programming and design details that must be implemented, which are not the core functionality of your app.
6
-
7
-
So why not use or reuse some ready-made SDK?
5
+
Although implementing some form to obtain user consents and store them for further reference seems pretty straightforward, digging into it reveals (as usual with “simple tasks”) many programming and design details that must be implemented, which are not the core functionality of your app.
@@ -14,9 +12,9 @@ So why not use or reuse some ready-made SDK?
14
12
-__Dialog__
15
13
-__FragmentDialog__(persists orientation changes)
16
14
-__Activity__
17
-
- Stores consent grant results and provides access methods.
15
+
- Stores consent results and provides access methods.
18
16
19
-
## Instalation
17
+
## Installation
20
18
21
19
todo
22
20
@@ -28,7 +26,7 @@ Firstly you need to instantiate `ConsentSDK` with `applicationContext`.
28
26
val consentSDK = ConsentSDK(applicationContext)
29
27
```
30
28
31
-
This object is gonna be used for all interactions with ConsentSDK.
29
+
This object is going to be used for all interactions with ConsentSDK.
32
30
33
31
### Consent form data
34
32
@@ -65,16 +63,16 @@ val consentFormData = ConsentFormData(
65
63
66
64
```
67
65
68
-
Array `consentFormItems` represents consents we want user to grant us. Every item needs have:
66
+
Array `consentFormItems` represents consents we want the user to grant us. Every item needs to have:
69
67
- unique `consentKey` that represents it and can be used to obtain grant result for this consent.
70
-
-`required` flag. If this flag is set to `true` user cannot successfully finish consent form without granting this consent.
71
-
-`descriptionText` informing user about the consent.
72
-
-`link` (optional) that lest user open web page (URL) with more info.
68
+
-`required` flag. If this flag is set to `true` user cannot successfully finish the consent form without granting this consent.
69
+
-`descriptionText` informing the user about the consent.
70
+
-`link` (optional) that lets the user open a web page (URL) with more info.
73
71
74
72
Object `consentFormData` provides all needed data for displaying consent form.
75
73
76
74
### Showing consent form on `Dialog`
77
-
Most simple and straight-forward way of displaying consent form is on `Dialog`. It has one __drawback__, this way we __cannot__ properly persist user data on orientation change. Use this if you have locked screen orientation.
75
+
A most simple and straight-forward way of displaying consent form is on `Dialog`. It has one __drawback__, this way we __cannot__ properly persist user data on orientation change. Use this if you have locked screen orientation.
0 commit comments