CDInitializationParams constructor
const
CDInitializationParams({
- required String partnerKey,
- required String applicationIABCategory,
- String? partnerSecret,
- required double distanceFilter,
- required double locationUpdateInterval,
- required double adLocationExpiryInterval,
- CDLogLevel logLevel = CDLogLevel.off,
- CDADProvider provider = CDADProvider.chalk,
- CDEnvironment environment = CDEnvironment.test,
- bool showTrackingTerms = false,
- bool? gdpr,
- bool? consent,
- bool clientHasUserTrackingPermission = true,
- String appName = "",
- String? appKey,
- String? secretKey,
- String? host,
- 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,
});