An open API service indexing awesome lists of open source software.

https://github.com/whitesharx/tosx

✅ Native "Terms of service" alerts for Unity
https://github.com/whitesharx/tosx

android csharp gdpr ios unity

Last synced: 8 months ago
JSON representation

✅ Native "Terms of service" alerts for Unity

Awesome Lists containing this project

README

          

ToSx

✅ Native alerts of Terms of Service, Privacy Policy for Unity ✅





* Displays only *single* button and embedded urls.
* User can't close this alert, only accept it or close app.
* You need **Unity 2019.x** or newer



# Install ToSx with Package Manger

ToSx distributed as standard [Unity Package](https://docs.unity3d.com/Manual/PackagesList.html)
You can install this package using Unity Package Manager, just add the
following to your `Packages/manifest.json`:

```json
{
"dependencies": {
"com.whitesharx.tosx": "https://github.com/whitesharx/tosx.git?path=Tosx/Assets/Tosx#0.5.5"
}
}

```

# How to Use

Whole source code of [example](https://github.com/whitesharx/tosx/blob/develop/Tosx/Assets/Tosx/Scenes/SandboxBehaviour.cs) can be found inside Sandbox scene.

```csharp

var settings = new DisplaySettings(title, message, tosText, ppText, tosUrl, ppUrl, actionTitle);
using var toSx = new TosxAlert(settings);

await toSx.DisplayAsync();
```

# License

ToSx is available under the [MIT](https://en.wikipedia.org/wiki/MIT_License) license.


Made with 🖤 at WhiteSharx