updateGDPRConsent static method
Updates GDPR consent data
The consentString
should be a correct string formatted according to IAB specification
Implementation
static Future<void> updateGDPRConsent(
{bool? grantsConsent, String? consentString}) {
final params = <String, Object>{
if (grantsConsent != null) "grantConsent": grantsConsent,
if (consentString != null) "consentString": consentString,
};
return FairBidInternal._channel.invokeMethod("updateGDPR", params);
}