setHasUserConsent static method

void setHasUserConsent(
  1. bool hasUserConsent
)

Sets whether or not the user has provided consent for interest-based advertising.

Consent Flags in GDPR and Other Regions

Implementation

static void setHasUserConsent(bool hasUserConsent) {
  channel.invokeMethod('setHasUserConsent', {
    'value': hasUserConsent,
  });
}