Package io.didomi.sdk.config
Class ConfigurationRepository
-
- All Implemented Interfaces:
public final class ConfigurationRepositoryAppConfiguration manager
-
-
Field Summary
Fields Modifier and Type Field Description private final StringapiKeyprivate final Regulationregulationprivate final BooleanisConfigLoadedFromDidomiprivate final SDKConfigurationsdkConfigurationprivate final IABConfigurationiabConfigurationprivate final AppConfigurationappConfigurationprivate final StringdeploymentId
-
Constructor Summary
Constructors Constructor Description ConfigurationRepository(RemoteFilesHelper remoteFilesHelper, ContextHelper contextHelper, LocalPropertiesRepository localPropertiesRepository, DidomiInitializeParameters parameters)
-
Method Summary
Modifier and Type Method Description final StringgetApiKey()final RegulationgetRegulation()Computed regulation based on the multi-regulation or legacy schema. final BooleanisConfigLoadedFromDidomi()Was the configuration loaded from the Didomi Console or from a local/remote source that we do not control? final SDKConfigurationgetSdkConfiguration()final IABConfigurationgetIabConfiguration()final AppConfigurationgetAppConfiguration()final StringgetDeploymentId()final UnitloadCustom(AppConfiguration appConfig, SDKConfiguration sdkConfig, IABConfiguration iabConfig)Force to load a specific configuration final Unitload(Context context)Load the configuration from anywhere possible final UnitcompleteVendorDeviceStorageDisclosures(InternalVendor vendor)Update the vendor device storage disclosures list from the URL specified in vendor model. -
-
Constructor Detail
-
ConfigurationRepository
ConfigurationRepository(RemoteFilesHelper remoteFilesHelper, ContextHelper contextHelper, LocalPropertiesRepository localPropertiesRepository, DidomiInitializeParameters parameters)
-
-
Method Detail
-
getRegulation
final Regulation getRegulation()
Computed regulation based on the multi-regulation or legacy schema. Which ever applies.
-
isConfigLoadedFromDidomi
final Boolean isConfigLoadedFromDidomi()
Was the configuration loaded from the Didomi Console or from a local/remote source that we do not control?
-
getSdkConfiguration
final SDKConfiguration getSdkConfiguration()
-
getIabConfiguration
final IABConfiguration getIabConfiguration()
-
getAppConfiguration
final AppConfiguration getAppConfiguration()
-
getDeploymentId
final String getDeploymentId()
-
loadCustom
final Unit loadCustom(AppConfiguration appConfig, SDKConfiguration sdkConfig, IABConfiguration iabConfig)
Force to load a specific configuration
- Parameters:
appConfig- override for app configuration, or null if should not overridesdkConfig- override for sdk configuration, or null if should not overrideiabConfig- override for IAB configuration, or null if should not override
-
completeVendorDeviceStorageDisclosures
final Unit completeVendorDeviceStorageDisclosures(InternalVendor vendor)
Update the vendor device storage disclosures list from the URL specified in vendor model. This operation may involve network calls and should not be called from the UI thread.
- Parameters:
vendor- the vendor to update
-
-
-
-