setHasGDPRConsent static method

void setHasGDPRConsent({
  1. required bool status,
})

In order to facilitate compliance with General Data Protection Regulation (GDPR), this method takes the consent status of users. If consent is given, the partners mediation providers will be able to send targeted ads. By sending YES user accepts to share information to receive tarheted ads. By sending NO user accepts to share information to receive tarheted ads.

Implementation

/// By sending YES user accepts to share information to receive
/// tarheted ads. By sending NO user accepts to share information
/// to receive tarheted ads.
static void setHasGDPRConsent({required bool status}) {
  if (Platform.isIOS && !initialized.value) return;
  _channel.invokeMethod('setHasGDPRConsent', {
    'status': status,
  });
}