dplus android场景api替换文档

dplus android场景api替换文档

ID:11586851

大小:44.09 KB

页数:12页

时间:2018-07-12

dplus android场景api替换文档_第1页
dplus android场景api替换文档_第2页
dplus android场景api替换文档_第3页
dplus android场景api替换文档_第4页
dplus android场景api替换文档_第5页
资源描述:

《dplus android场景api替换文档》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库

1、Dplusandroid场景API替换文档Dplusandroid场景API替换文档1通用场景1跟踪用户注册及登录1跟踪页面点赞/分享/评论/收藏3跟踪页面浏览5跟踪应用内搜索7股票场景9添加自选股/删除自选股9跟踪股票浏览10通用场景跟踪用户注册及登录1.用户登录DplusScene.trackLogin(HashMapproperty)替换为HashMapp=newHashMap();p.putAll(property);TelephonyM

2、anagertelephonyManager=(TelephonyManager)context.getSystemService(Context.TELEPHONY_SERVICE);StringstrDis=telephonyManager.getDeviceId();Stringdata=android.util.Base64.encodeToString(strDis.getBytes(),android.util.Base64.NO_WRAP);StringsceneID=android.util.Base64.encode

3、ToString((data+"_User").getBytes(),android.util.Base64.NO_WRAP);p.put("$senario",sceneID);Dplus.track("$Lg",p);2.用户注册DplusScene.trackSignup(HashMapproperty)替换为HashMapp=newHashMap();p.putAll(property);TelephonyManagertelephony

4、Manager=(TelephonyManager)context.getSystemService(Context.TELEPHONY_SERVICE);StringstrDis=telephonyManager.getDeviceId();Stringdata=android.util.Base64.encodeToString(strDis.getBytes(),android.util.Base64.NO_WRAP);StringsceneID=android.util.Base64.encodeToString((data+

5、"_User").getBytes(),android.util.Base64.NO_WRAP);p.put("$senario",sceneID);Dplus.track("$Su",p);3.设置用户id原始:DplusScene.setUserId(Stringid)替换为:Dplus.registerProperty("$uid",id);4.设置用户名DplusScene.setUserName(Stringname);替换为Dplus.registerProperty("$un",name);5.设置用户类型DplusSc

6、ene.setUserType(Stringtype)替换为Dplus.registerProperty("$at",type);6.设置用户邮箱DplusScene.setUserEmail(Stringemail);替换为Dplus.registerProperty("$em",email);7.设置用户电话DplusScene.setUserPhone(Stringphone)替换为Dplus.registerProperty("$ph",phone);8.设置用户来源DplusScene.setUserSource(Strin

7、gsource)替换为Dplus.registerProperty("$usc",source);跟踪页面点赞/分享/评论/收藏9.分享DplusScene.trackShare(HashMapproperty)替换为HashMapp=newHashMap();p.putAll(property);如果13-22的map不为空就加入到pp.putAll(13-22的map);TelephonyManagertelephonyManager=(Te

8、lephonyManager)context.getSystemService(Context.TELEPHONY_SERVICE);StringstrDis=telephonyManager.getDeviceId()

当前文档最多预览五页,下载文档查看全文

此文档下载收益归作者所有

当前文档最多预览五页,下载文档查看全文
温馨提示:
1. 部分包含数学公式或PPT动画的文件,查看预览时可能会显示错乱或异常,文件下载后无此问题,请放心下载。
2. 本文档由用户上传,版权归属用户,天天文库负责整理代发布。如果您对本文档版权有争议请及时联系客服。
3. 下载前请仔细阅读文档内容,确认文档内容符合您的需求后进行下载,若出现内容与标题不符可向本站投诉处理。
4. 下载文档时可能由于网络波动等原因无法下载或下载错误,付费完成后未能成功下载的用户请联系客服处理。