setIsUserConsent static method

Future<void> setIsUserConsent(
  1. bool hasConsent
)

Set whether user has given consent (GDPR)

⚠️ Warning: GDPR is not yet supported by CloudX. Use CCPA for privacy compliance in supported regions.

Implementation

static Future<void> setIsUserConsent(bool hasConsent) async {
  await _invokeMethod('setIsUserConsent', {'isUserConsent': hasConsent});
}