-
- All Implemented Interfaces:
public final class ConfigurationRepositoryAppConfiguration manager
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classConfigurationRepository.Companion
-
Field Summary
Fields Modifier and Type Field Description private final StringapiKeyprivate 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 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(Vendor 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
-
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(Vendor 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
-
-
-
-