-
public abstract class AFEvent
-
-
Field Summary
Fields Modifier and Type Field Description private AppsFlyerRequestListenerrequestListenerprivate StringappReferrerprivate StringwebReferrerUrl
-
Method Summary
Modifier and Type Method Description AppsFlyerRequestListenergetRequestListener()StringgetAppReferrer()AFEventsetAppReferrer(String appReferrer)StringgetWebReferrerUrl()AFEventsetWebReferrerUrl(String webReferrerUrl)StringvaluesJson()AFEventurlString(String urlString)StringurlString()URLurl()AFEventrequestListener(AppsFlyerRequestListener requestListener)AFEventname(String name)Stringname()AFEventreferrer(String referrer)Stringreferrer()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()booleanshouldRemoveMetaData(double sendRate)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 booleanshouldAddHostData()You can override this to control if host field will be addedto this event via com.appsflyer.internal.components.queue.tasks.SendEventTask -
-
Method Detail
-
getRequestListener
@Nullable() AppsFlyerRequestListener getRequestListener()
-
getAppReferrer
@Nullable() String getAppReferrer()
-
setAppReferrer
AFEvent setAppReferrer(String appReferrer)
-
getWebReferrerUrl
@Nullable() String getWebReferrerUrl()
-
setWebReferrerUrl
AFEvent setWebReferrerUrl(String webReferrerUrl)
-
valuesJson
@NonNull() String valuesJson()
-
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()
-
shouldRemoveMetaData
boolean shouldRemoveMetaData(double sendRate)
-
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
-
shouldAddHostData
boolean shouldAddHostData()
You can override this to control if host field will be addedto this event via com.appsflyer.internal.components.queue.tasks.SendEventTask
-
-
-
-