-
public class SecureDataProvider
-
-
Field Summary
Fields Modifier and Type Field Description private volatile StringdevKeyprivate volatile booleansdkStoppedprivate volatile StringuserCustomImei
-
Constructor Summary
Constructors Constructor Description SecureDataProvider(ContextProvider contextProvider, AFLVLReflection aflvlReflection)
-
Method Summary
Modifier and Type Method Description StringgetDevKey()voidsetDevKey(String devKey)voidsetSdkStopped(boolean stopped)StringgetUserCustomImei()voidsetUserCustomImei(@NonNull() String userCustomImei)booleanisSdkStopped()StringgetImei(AppsFlyerPreferences pref)Map<String, Object>generateCheckSumForEvent(Map<String, Object> params)Uses AFCksmV2 to generate checksum for given event params.The checksum value then has to be added to the event params under the special key for anti-fraud. Map<String, Object>generateCheckSumV3ForEvent(Map<String, Object> params)Map<String, Object>getLvlMap()booleanisWaitingForLvlData()booleancheckAndBindLVL()Tries to bind lvl licencing module via reflection and request google play lvl data. -
-
Constructor Detail
-
SecureDataProvider
SecureDataProvider(ContextProvider contextProvider, AFLVLReflection aflvlReflection)
-
-
Method Detail
-
setSdkStopped
void setSdkStopped(boolean stopped)
-
getUserCustomImei
@Nullable() String getUserCustomImei()
-
setUserCustomImei
void setUserCustomImei(@NonNull() String userCustomImei)
-
isSdkStopped
boolean isSdkStopped()
-
getImei
@Nullable() String getImei(AppsFlyerPreferences pref)
-
generateCheckSumForEvent
Map<String, Object> generateCheckSumForEvent(Map<String, Object> params)
Uses AFCksmV2 to generate checksum for given event params.The checksum value then has to be added to the event params under the special key for anti-fraud.
-
generateCheckSumV3ForEvent
Map<String, Object> generateCheckSumV3ForEvent(Map<String, Object> params)
-
isWaitingForLvlData
boolean isWaitingForLvlData()
-
checkAndBindLVL
boolean checkAndBindLVL()
Tries to bind lvl licencing module via reflection and request google play lvl data.The data itself is collected asynchronously,check isLVLMapAvailable and getLvlMap periodically to get it.
You can also check if data fetching is still in progress by isWaitingForLvlData method.
N.B. all LVL related code was migrated as is from AppsflyerLibCore, during Queue implementation
-
-
-
-