-
public abstract class AFEvent
-
-
Field Summary
Fields Modifier and Type Field Description private AppsFlyerRequestListenerrequestListener
-
Method Summary
Modifier and Type Method Description AppsFlyerRequestListenergetRequestListener()AFEventurlString(String urlString)StringurlString()URLurl()AFEventrequestListener(AppsFlyerRequestListener requestListener)AFEventreferrer(String referrer)booleanisLaunchEvent()Checks if current event is launch.Detection of launch event is based on event name for the moment (historical reasons)We can't change that because of lots of hidden backdoors in public apiE.g. AFEventaddParams(Map<String, out Object> params)AFEventputParam(String key, Object value)Map<String, Object>params()AFEventlaunchCounter(int launchCounter)intlaunchCounter()AFEventpost(Array<byte> post)Array<byte>post()AFEventcacheKey(String cacheKey)StringcacheKey()booleanisEncrypt()abstract TaskTypetaskTypeForQueue()booleanshouldAddReceipt()You can override this to control if p_receipt field will be addedto this event payload via prepareForServer method booleanshouldAddCheckSum()You can override this to control if p_receipt field will be addedto this event payload via com.appsflyer.internal.components.queue.tasks.SendEventTask booleanshouldAddLvlData()You can override this to control if p_receipt field will be addedto this event via com.appsflyer.internal.components.queue.tasks.SendEventTask -
-
Method Detail
-
getRequestListener
@Nullable() AppsFlyerRequestListener getRequestListener()
-
requestListener
AFEvent requestListener(AppsFlyerRequestListener requestListener)
-
isLaunchEvent
boolean isLaunchEvent()
Checks if current event is launch.Detection of launch event is based on event name for the moment (historical reasons)We can't change that because of lots of hidden backdoors in public apiE.g. app dev can trigger launch by sending `logEvent` with null name
TODO remove this workaround and use class type to detect launch
-
launchCounter
AFEvent launchCounter(int launchCounter)
-
launchCounter
int launchCounter()
-
isEncrypt
boolean isEncrypt()
-
taskTypeForQueue
abstract TaskType taskTypeForQueue()
-
shouldAddReceipt
boolean shouldAddReceipt()
You can override this to control if p_receipt field will be addedto this event payload via prepareForServer method
-
shouldAddCheckSum
boolean shouldAddCheckSum()
You can override this to control if p_receipt field will be addedto this event payload via com.appsflyer.internal.components.queue.tasks.SendEventTask
-
shouldAddLvlData
boolean shouldAddLvlData()
You can override this to control if p_receipt field will be addedto this event via com.appsflyer.internal.components.queue.tasks.SendEventTask
-
-
-
-