Package io.didomi.sdk.iab
Object TCFHelper
-
- All Implemented Interfaces:
public class TCFHelper
-
-
Method Summary
Modifier and Type Method Description final StringgetBitString(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 UnitclearSharedPreferences(SharedPreferences sharedPreferences, Array<String> keys)Clear keys from shared preferences -
-
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
-
clearSharedPreferences
final Unit clearSharedPreferences(SharedPreferences sharedPreferences, Array<String> keys)
Clear keys from shared preferences
-
-
-
-