public class TCFV1Repository extends java.lang.Object implements TCFRepository
| Constructor and Description |
|---|
TCFV1Repository()
TCFV1Repository constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
clearCMPKeys(android.content.SharedPreferences sharedPreferences)
Clear keys in SharedPreferences that belong to the TCFv2
This ensures that there is no v2 CMP in the app and that vendors will not try to read from v2
|
java.lang.String |
getUserConsentString(android.content.SharedPreferences sharedPreferences)
Getter for user consent string
|
int |
getVersion()
Get the TCF version implemented by this repository (1)
|
void |
saveConsentInformation(android.content.SharedPreferences sharedPreferences,
int vendorListMaxVendorId,
int vendorListVersion,
ConsentToken consentToken,
AppConfiguration appConfiguration,
IABConfiguration vendorList,
java.util.List<io.didomi.sdk.publisherrestrictions.PublisherRestriction> publisherRestrictions,
java.lang.String languageCode)
Store consent information with the IAB format
|
void |
setCMPPresent(android.content.SharedPreferences sharedPreferences)
Create the required key in SharedPreferences to indicate that a CMP is present in the app
|
void |
setSubjectToGDPR(android.content.SharedPreferences sharedPreferences,
boolean subjectToGDPR)
Indicate whether the user is subject to GDPR or not
|
public int getVersion()
getVersion in interface TCFRepositorypublic void clearCMPKeys(android.content.SharedPreferences sharedPreferences)
clearCMPKeys in interface TCFRepositorysharedPreferences - public void setSubjectToGDPR(android.content.SharedPreferences sharedPreferences,
boolean subjectToGDPR)
setSubjectToGDPR in interface TCFRepositorysharedPreferences - subjectToGDPR - public void saveConsentInformation(android.content.SharedPreferences sharedPreferences,
int vendorListMaxVendorId,
int vendorListVersion,
ConsentToken consentToken,
AppConfiguration appConfiguration,
IABConfiguration vendorList,
java.util.List<io.didomi.sdk.publisherrestrictions.PublisherRestriction> publisherRestrictions,
java.lang.String languageCode)
saveConsentInformation in interface TCFRepositorysharedPreferences - vendorListMaxVendorId - vendorListVersion - publisherRestrictions - consentToken - appConfiguration - instance of AppConfigurationpublic void setCMPPresent(android.content.SharedPreferences sharedPreferences)
setCMPPresent in interface TCFRepositorysharedPreferences - public java.lang.String getUserConsentString(android.content.SharedPreferences sharedPreferences)
getUserConsentString in interface TCFRepositorysharedPreferences -