The following code explains how you should use the R89SDK.shouldDisplayPrivacyOptions
and the R89SDK.reOpenConsent()
functions.
This is intended to provide the user his rights of modifications of his choice.
Code Block |
---|
|
Widget build(BuildContext context) {
...
FilledButton(
style: ButtonStyle(
backgroundColor: WidgetStateProperty.all(Colors.redAccent)),
onPressed: () => R89SDK.reOpenConsent(),
child: const Text('Reopen concent')),
...
} |
Resetting should only be used when testing to re-display cmp on startup.
Code Block |
---|
|
R89SDK.resetConsent() |