isConsentOptIn method

Future<bool> isConsentOptIn()

Returns "consent opt-in status" returned by our server rules. Only returns meaningful information after the rules are downloaded.

Implementation

Future<bool> isConsentOptIn() async {
  try {
    return await AatkitFlutterPluginPlatform.instance.isConsentOptIn();
  } on PlatformException catch (e) {
    aatkitLog("PlatformException, error: $e");
    return false;
  }
}