Object TCFHelper

  • All Implemented Interfaces:

    
    public class TCFHelper
    
                        
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
      public final static TCFHelper INSTANCE
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final String getBitString(Set<Integer> allowedBits, Integer maxBit) Return a bit string (series of 0 and 1) to encode enabled/disabled purposes or vendors Important: the allowed bits are shifted (ie pass vendor ID 1 to enable bit 0)
      final Unit clearSharedPreferences(SharedPreferences sharedPreferences, Array<String> keys) Clear keys from shared preferences
      • Methods inherited from class java.lang.Object

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

    • Method Detail

      • getBitString

         final String getBitString(Set<Integer> allowedBits, Integer maxBit)

        Return a bit string (series of 0 and 1) to encode enabled/disabled purposes or vendors Important: the allowed bits are shifted (ie pass vendor ID 1 to enable bit 0)

        Parameters:
        allowedBits - Set of enabled bits (index - 1)
        maxBit - Size of the bit string