Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

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
languagedart
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
languagedart
R89SDK.resetConsent()