AppsFlyer上报数据
业务场景
上报 AppsFlyer 自定义事件埋点数据;
注意事项
- bundle,上报的数据,为 key=value 数据
- 上报 AppsFlyer(AF)自定义事件,需要添加
af_
事件前缀
流程图
无
接口介绍
void logAppsFlyerEvent(String eventName, Bundle params);
调用示例
String eventName = "xxx";
Bundle bundle = new Bundle();
bundle.putString("key1", "val1");
bundle.putInt("key2", 2);
...
SDKManager.getInstance().logAppsFlyerEvent("af_" + eventName, bundle); // 没有参数时bundle可传null
参数说明
入参
参数名称 | 类型 | 说明 | 备注 |
---|---|---|---|
eventName | string | 埋点事件名称 | 必传 |
bundle | string | 上报的内容,转成 json 字符串传入 | 必传 |
错误码
无
FAQ
无