setConsent static method
Sets isConsent
as the GDPR setting.
- Note: Must be called before init.
Native SDK Reference
- Android: setConsent
-
iOS: setConsent
Implementation
static Future<void> setConsent(bool isConsent) async {
final args = OutgoingValueParser.setConsent(isConsent);
return _channel.invokeMethod('setConsent', args);
}