showConsentIfNeededOrRejected method

Future<void> showConsentIfNeededOrRejected(
  1. int daysAgo
)

Presents the consent screen if it is required by the used CMP (i.e. no user consent has been set yet) or the user has rejected the consent.

Implementation

Future<void> showConsentIfNeededOrRejected(int daysAgo) async {
  try {
    await AatkitFlutterPluginPlatform.instance
        .showConsentIfNeededOrRejected(daysAgo);
  } on PlatformException catch (e) {
    aatkitLog("PlatformException, error: $e");
  }
}