Skip to end of metadata
Go to start of metadata

You are viewing an old version of this content. View the current version.

Compare with Current View Version History

« Previous Version 2 Next »

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.

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.

R89SDK.resetConsent()
  • No labels