userConsent method
Future<void>
userConsent(
- String subjectToGDPR,
- String consent, {
- TCFVersion tcfVersion = TCFVersion.v2,
- int cmpSdkID = 0,
The GDPR status and consent, should match the IAB specifications.
Implementation
Future<void> userConsent(String subjectToGDPR, String consent,
{TCFVersion tcfVersion = TCFVersion.v2, int cmpSdkID = 0}) async {
_mapValue = await _channel.invokeMethod(
'userConsent', [subjectToGDPR, consent, tcfVersion.value, cmpSdkID]);
}