namespace Chartboost.Core.Usercentrics
{
///
/// Utilize to configure Usercentrics initialization options.
///
public struct UsercentricsOptions
{
///
/// A Usercentrics generated ID, used to identify a bundle of CMP configurations to be used depending on the user's location.
///
public readonly string RulesetId;
///
/// A Usercentrics generated ID, used to identify a unique CMP configuration.
///
public readonly string SettingsId;
///
/// Selected based on Usercentrics Language Selection Hierarchy. This property defines the language used to render the banner. e.g. "en", "de", "fr".
///
public readonly string DefaultLanguage;
///
/// To freeze the configuration version shown to your users, you may pass a specific version here.
///
public readonly string Version;
///
/// Timeout for network requests in milliseconds. We do NOT recommend overwriting this field unless absolutely necessary or for debugging reasons, as well as using any values under 5,000 ms. Default is 10,000 ms (10s).
///
public readonly long? TimeoutMilliseconds;
///
/// Enable Consent Mediation, an automated way to pass consent to 3rd party frameworks.
///
public readonly bool? ConsentMediation;
///
/// Provides a set of logs for operations being executed in the SDK.
///
public readonly UsercentricsLoggerLevel? LoggerLevel;
///
/// Sets the network operation mode. Be careful, use this option only if we have confirmed that it is ready to use because it has a significant impact on the whole system's performance. The default value is "world".
///
public readonly NetworkMode? NetworkMode;
public UsercentricsOptions(string settingsId = null, string rulesetId = null, string defaultLanguage = null,
string version = null, long? timeoutMilliseconds = null, bool? consentMediation = null,
UsercentricsLoggerLevel? loggerLevel = null, NetworkMode? networkMode = null)
{
SettingsId = settingsId;
RulesetId = rulesetId;
DefaultLanguage = defaultLanguage;
Version = version;
TimeoutMilliseconds = timeoutMilliseconds;
ConsentMediation = consentMediation;
LoggerLevel = loggerLevel;
NetworkMode = networkMode;
}
}
}