CmpSDKOptions constructor
CmpSDKOptions({})
Implementation
CmpSDKOptions({
this.appURL = "",
this.cdnURL = "",
this.tenantID = "",
this.appID = "",
this.testingMode = false,
this.loggerLevel = CmpSDKLoggerLevel.debug,
this.consentsCheckInterval = 1800,
this.subjectId,
this.languageCode,
this.locationCode,
}) {
// Ensure consentsCheckInterval is at least 60 seconds
if (consentsCheckInterval < 60) {
consentsCheckInterval = 60;
}
// Convert languageCode to lowercase if not null
if (languageCode != null) {
languageCode = languageCode?.toLowerCase();
}
}