Interface IABStorageRepository

  • All Implemented Interfaces:

    
    public interface IABStorageRepository
    
                        

    Interface used to generate IAB Strings according to configuration

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      Unit clearCMPKeys(SharedPreferences sharedPreferences) Clear keys in SharedPreferences that do not belong to the current TCF version
      abstract Unit saveConsentInformation(SharedPreferences sharedPreferences, 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.
      Unit setCMPPresent(ConfigurationRepository configurationRepository, SharedPreferences sharedPreferences) Create the required keys in SharedPreferences to indicate that a CMP is present in the app
      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.
      abstract String getUserConsentString(SharedPreferences sharedPreferences)
      abstract Integer getVersion() TCF version implemented by the repository
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • clearCMPKeys

         Unit clearCMPKeys(SharedPreferences sharedPreferences)

        Clear keys in SharedPreferences that do not belong to the current TCF version

      • setCMPPresent

         Unit setCMPPresent(ConfigurationRepository configurationRepository, 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.