CDInitializationParams constructor

const CDInitializationParams({
  1. required String partnerKey,
  2. required String applicationIABCategory,
  3. String? partnerSecret,
  4. required double distanceFilter,
  5. required double locationUpdateInterval,
  6. required double adLocationExpiryInterval,
  7. CDLogLevel logLevel = CDLogLevel.off,
  8. CDADProvider provider = CDADProvider.chalk,
  9. CDEnvironment environment = CDEnvironment.test,
  10. bool showTrackingTerms = false,
  11. bool? gdpr,
  12. bool? consent,
  13. bool clientHasUserTrackingPermission = true,
  14. String appName = "",
  15. String? appKey,
  16. String? secretKey,
  17. String? host,
  18. bool? enableTracking = false,
})

Implementation

const CDInitializationParams({
  required this.partnerKey,
  required this.applicationIABCategory,
  this.partnerSecret,
  required this.distanceFilter,
  required this.locationUpdateInterval,
  required this.adLocationExpiryInterval,
  this.logLevel = CDLogLevel.off,
  this.provider = CDADProvider.chalk, // default to chalk
  this.environment = CDEnvironment.test,
  this.showTrackingTerms = false,
  this.gdpr,
  this.consent,
  this.clientHasUserTrackingPermission = true,
  this.appName = "",
  this.appKey,
  this.secretKey,
  this.host,
  this.enableTracking = false,
});