appconsent_tv 0.1.5 appconsent_tv: ^0.1.5 copied to clipboard
AppConsent® cmp, the transparency-based consent management platform.
appconsent_tv #
AppConsent® cmp, the transparency-based consent management platform.
Getting Started #
Here are several different implementation methods
First example #
First, initialize AppconsentTv with the setup
method, making sure it is initialized by placing the keyword await
in front of it.
Then display the CMP when you want.
import 'package:appconsent_tv/appconsent_tv.dart';
// Configure at launch (appKey:forceApplyGDPR:forceATT)
await AppconsentTv.setup("4e9a99ed-1261-4241-8213-4f6e31d361c2", true, true);
// Display the CMP if needed after setup
AppconsentTv.presentNotice(false);
Second example #
Initialize AppconsentTv with the setup
method then call AppconsentTv.presentNotice(false)
import 'package:appconsent_tv/appconsent_tv.dart';
// Configure at launch (appKey:forceApplyGDPR:forceATT)
AppconsentTv.setup("4e9a99ed-1261-4241-8213-4f6e31d361c2", false, true)
.then((value) => AppconsentTv.presentNotice(false));
Documentation #
Our detailed documentation is accessible at https://docs.sfbx.io.