public class ConfigurationRepository
extends java.lang.Object
| Constructor and Description |
|---|
ConfigurationRepository(RemoteFilesHelper remoteFilesHelper,
ContextHelper contextHelper,
java.lang.String apiKey,
java.lang.String localConfigurationPath,
java.lang.String remoteConfigurationURL,
java.lang.String providerId,
java.lang.Boolean disableDidomiRemoteConfig,
java.lang.String noticeId) |
| Modifier and Type | Method and Description |
|---|---|
void |
completeVendorDeviceStorageDisclosures(Vendor vendor)
Update the vendor device storage disclosures list from the URL specified in vendor model.
|
java.lang.String |
getApiKey() |
AppConfiguration |
getAppConfiguration() |
java.lang.String |
getDeploymentId()
Getter for the consent notice deployment ID.
|
IABConfiguration |
getIabConfiguration() |
io.didomi.sdk.config.SDKConfiguration |
getSdkConfiguration() |
boolean |
isConfigLoadedFromDidomi() |
void |
load(android.app.Application application)
Load the configuration from anywhere possible
|
static java.lang.String |
readFileFromAssets(android.app.Application application,
java.lang.String path)
Load the configuration from a local file
|
boolean |
shouldUseV1()
Determine if used TCF version is TCFV1 from app configuration
|
boolean |
shouldUseV2()
Determine if used TCF version is TCFV2 from app configuration
|
public ConfigurationRepository(RemoteFilesHelper remoteFilesHelper, ContextHelper contextHelper, java.lang.String apiKey, @Nullable java.lang.String localConfigurationPath, @Nullable java.lang.String remoteConfigurationURL, @Nullable java.lang.String providerId, java.lang.Boolean disableDidomiRemoteConfig, java.lang.String noticeId)
public void load(android.app.Application application)
throws java.lang.Exception
java.lang.Exceptionpublic boolean shouldUseV2()
public boolean shouldUseV1()
@Nullable public java.lang.String getDeploymentId()
@Nullable
public static java.lang.String readFileFromAssets(android.app.Application application,
java.lang.String path)
throws java.lang.Exception
application - path - java.lang.Exceptionpublic AppConfiguration getAppConfiguration()
public IABConfiguration getIabConfiguration()
public io.didomi.sdk.config.SDKConfiguration getSdkConfiguration()
public java.lang.String getApiKey()
public boolean isConfigLoadedFromDidomi()
public void completeVendorDeviceStorageDisclosures(Vendor vendor)
vendor - the vendor to update