setPrivacy static method

Future<void> setPrivacy(
  1. bool hasConsent,
  2. bool doNotSell,
  3. bool isAgeRestricted
)

Implementation

static Future<void> setPrivacy(
    bool hasConsent, bool doNotSell, bool isAgeRestricted) async {
  try {
    await _channel.invokeMethod<void>('SetPrivacy', <String, dynamic>{
      'HasConsent': hasConsent,
      'DoNotSell': doNotSell,
      'IsAgeRestricted': isAgeRestricted
    });
  } catch (e) {
    print(e.toString());
  }
}