setPrivacy static method
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());
}
}