Skip to content

Commit 31f1c61

Browse files
committed
Update README.md
1 parent 74657f4 commit 31f1c61

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

README.md

+11-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ Sourcepoint's plug and play Unity SDK can be integrated with both Android and iO
88
> <br><br>Additionally, this SDK utilizes [ExternalDependencyManager by Google](https://github.com/googlesamples/unity-jar-resolver) in order to fetch native SDKs and their dependencies. Ensure all the dependencies mentioned in `Assets/ExternalDependencyManager/Editor/SourcepointDependencies.xml` are resolved before building your application.
99
1010
In Unity SDK version 2.3.3, the native Android SDK dependency was updated to version 7.8.3, so CMP SDK is now supported on Unity version 2022.3.0 and higher. This was done due to Java version upgrade as well as Gradle upgrade to version 7.5 in native Android SDK 7.8.2 which is a dependency of Unity SDK. However, we are able to build with Gradle v7.2 which is built-in in Unity 2022.3
11-
Please also note that in order to build a project:
11+
12+
**_NOTE:_** If you use 2.3.3-3.0.0 versions of Unity SDK to build a project:
1213
* You need to use a custom template for Gradle, please refer to "Plugins\Android\mainTemplate.gradle", lines 41-43.
1314

1415
---
@@ -377,6 +378,15 @@ SpCampaign usnat = new SpCampaign(campaignType: CAMPAIGN_TYPE.USNAT, targetingPa
377378
spCampaigns.Add(usnat);
378379
```
379380

381+
## Programmatically rejecting all for a user
382+
383+
It's possible to programmatically issue a "reject all" action in behalf of the current user by calling the `rejectAll(campaignType)` function. The `rejectAll` function behaves exactly the same way as if a user would have pressed the "reject all" button on the 1st layer or privacy manager.
384+
Upon completion, the sdk will call either `onConsentReady` in case of success or `onError` in case of failure.
385+
386+
```C#
387+
CMP.Instance.rejectAll(campaignType: CAMPAIGN_TYPE.gdpr)
388+
```
389+
380390
# Build for iOS
381391

382392
Since Unity Editor exports the pre-built project to Xcode on iOS build, there are several necessary steps to perform so you can compile your solution. They are implemented inside the `CMPPostProcessBuild` [PostProcessBuild] script. Supplement or modify it if it is needed.

0 commit comments

Comments
 (0)