-
- All Implemented Interfaces:
public interface IABStorageRepositoryThis interface defines methods which must be provided in classes which implement this interface (namely: TCFV1Repository and TCFV2Repository, depending on provided configuration).
-
-
Method Summary
Modifier and Type Method Description UnitclearCMPKeys(SharedPreferences sharedPreferences)Clear keys in SharedPreferences that do not belong to the current TCF version abstract UnitsaveConsentInformation(SharedPreferences sharedPreferences, Integer vendorListMaxVendorId, Integer vendorListVersion, ConsentToken consentToken, AppConfiguration appConfiguration, IABConfiguration vendorList, List<PublisherRestriction> publisherRestrictions, String languageCode)Method used to store consent information based on the io.didomi.sdk.iab TCF version that's associated to the IABStorageRepository that implements this interface. UnitsetCMPPresent(SharedPreferences sharedPreferences)Create the required keys in SharedPreferences to indicate that a CMP is present in the app UnitsetSubjectToGDPR(SharedPreferences sharedPreferences, Boolean subjectToGDPR)Method used to set the flag associated to the io.didomi.sdk.TCF version being implemented and indicate that the user is subject to GDPR. abstract StringgetUserConsentString(SharedPreferences sharedPreferences)abstract IntegergetVersion()TCF version implemented by the repository -
-
Method Detail
-
clearCMPKeys
Unit clearCMPKeys(SharedPreferences sharedPreferences)
Clear keys in SharedPreferences that do not belong to the current TCF version
-
saveConsentInformation
abstract Unit saveConsentInformation(SharedPreferences sharedPreferences, Integer vendorListMaxVendorId, Integer vendorListVersion, ConsentToken consentToken, AppConfiguration appConfiguration, IABConfiguration vendorList, List<PublisherRestriction> publisherRestrictions, String languageCode)
Method used to store consent information based on the io.didomi.sdk.iab TCF version that's associated to the IABStorageRepository that implements this interface.
- Parameters:
appConfiguration- instance of AppConfiguration
-
setCMPPresent
Unit setCMPPresent(SharedPreferences sharedPreferences)
Create the required keys in SharedPreferences to indicate that a CMP is present in the app
-
setSubjectToGDPR
Unit setSubjectToGDPR(SharedPreferences sharedPreferences, Boolean subjectToGDPR)
Method used to set the flag associated to the io.didomi.sdk.TCF version being implemented and indicate that the user is subject to GDPR.
-
getUserConsentString
abstract String getUserConsentString(SharedPreferences sharedPreferences)
-
getVersion
abstract Integer getVersion()
TCF version implemented by the repository
-
-
-
-