[quick-cocos2dx] umeng command
来源:互联网 发布:凡人修真2源码 编辑:程序博客网 时间:2024/04/29 22:33
local Provider = class("Provider")function Provider:ctor() self.interface_ = interfaceend--[[args { command = "要执行的命令", providerName = "模块名字", args = "执行命令的参数"}]]function Provider:doCommand(args)if args.command == "setAppVersion" thenMobClickCppForLua:setAppVersion(args.args.appVersion) elseif args.command == "setCrashReportEnabled" then MobClickCppForLua:setCrashReportEnabled(args.args.value) elseif args.command == "setLogEnabled" then MobClickCppForLua:setLogEnabled(args.args.value) elseif args.command == "startWithAppkey" then args.args.channelId = args.args.channelId or 0 MobClickCppForLua:startWithAppkey(args.args.appKey, args.args.channelId) elseif args.command == "applicationDidEnterBackground" then MobClickCppForLua:applicationDidEnterBackground() elseif args.command == "applicationWillEnterForeground" then MobClickCppForLua:applicationWillEnterForeground() elseif args.command == "end" then MobClickCppForLua:endAnalytics() elseif args.command == "event" then args.args.label = args.args.label or 0 MobClickCppForLua:event(args.args.eventId, args.args.label) elseif args.command == "eventCustom" then args.args.counter = args.args.counter or 0 MobClickCppForLua:eventCustom(args.args.eventId, args.args.attributes, args.args.counter) elseif args.command == "beginEvent" then MobClickCppForLua:beginEvent(args.args.eventId) elseif args.command == "endEvent" then MobClickCppForLua:endEvent(args.args.eventId) elseif args.command == "beginEventWithLabel" then MobClickCppForLua:beginEventWithLabel(args.args.eventId, args.args.label) elseif args.command == "endEventWithLabel" then MobClickCppForLua:endEventWithLabel(args.args.eventId, args.args.label) elseif args.command == "beginEventWithAttributes" then MobClickCppForLua:beginEventWithAttributes(args.args.eventId, args.args.primarykey, args.args.attributes) elseif args.command == "endEventWithAttributes" then MobClickCppForLua:endEventWithAttributes(args.args.eventId, args.args.primarykey) elseif args.command == "beginLogPageView" then MobClickCppForLua:beginLogPageView(args.args.pageName) elseif args.command == "endLogPageView" then MobClickCppForLua:endLogPageView(args.args.pageName) elseif args.command == "checkUpdate" then MobClickCppForLua:checkUpdate() elseif args.command == "checkUpdateWithArgs" then MobClickCppForLua:checkUpdate(args.args.title, args.args.cancelTitle, args.args.otherTitle) elseif args.command == "setUpdateOnlyWifi" then MobClickCppForLua:setUpdateOnlyWifi(args.args.updateOnlyWifi) elseif args.command == "updateOnlineConfig" then MobClickCppForLua:updateOnlineConfig() elseif args.command == "getConfigParams" then return MobClickCppForLua:getConfigParams(args.args.key) elseif args.command == "setUserLevel" then MobClickCppForLua:setUserLevel(args.args.level) elseif args.command == "setUserInfo" then MobClickCppForLua:setUserInfo(args.args.userId, args.args.sex, args.args.age, args.args.platform) elseif args.command == "startLevel" then MobClickCppForLua:startLevel(args.args.level) elseif args.command == "finishLevel" then MobClickCppForLua:finishLevel(args.args.level) elseif args.command == "failLevel" then MobClickCppForLua:failLevel(args.args.level) elseif args.command == "payCoin" then MobClickCppForLua:pay(args.args.cash, args.args.source, args.args.coin) elseif args.command == "payItem" then MobClickCppForLua:pay(args.args.cash, args.args.source, args.args.item, args.args.amount, args.args.price) elseif args.command == "buy" then MobClickCppForLua:buy(args.args.item, args.args.amount, args.args.price) elseif args.command == "use" then MobClickCppForLua:use(args.args.item, args.args.amount, args.args.price) elseif args.command == "bonusCoin" then MobClickCppForLua:bonus(args.args.coin, args.args.source) elseif args.command == "bonusItem" then MobClickCppForLua:bonus(args.args.item, args.args.amount, args.args.price, args.args.source) elseif args.command == "beginScene" then MobClickCppForLua:beginScene(args.args.sceneName) elseif args.command == "endScene" then MobClickCppForLua:endScene(args.args.sceneName) else printError("cc.analytics.umenganalytics.Provider:doCommand() - not support command") endendreturn Provider
0 0
- [quick-cocos2dx] umeng command
- quick-cocos2dx cocos2dx.lua
- Git Command Quick Reference
- quick-cocos2dx 新建项目
- quick-cocos2dx 组件管理器
- quick-cocos2dx AppBase
- quick-cocos2dx display
- quick-cocos2dx 实例 ------ nightclub
- quick-cocos2dx transition
- quick-cocos2dx display
- quick-cocos2dx环境安装
- quick-cocos2dx CCHTTPRequest 使用
- quick-cocos2dx学习笔记
- quick-cocos2dx创建项目
- quick cocos2dx 鼠标事件
- quick cocos2dx 定时器
- quick cocos2dx学习记录
- Quick Cocos2dx 调试问题
- 分布式session处理方案
- Actionbar 溢出菜单背景色设置
- 有一字符串,包含数字与字母,如何用指针编程去除数字。
- HNU 12836 Fox Observation
- APUE第八章 进程控制
- [quick-cocos2dx] umeng command
- 黑马程序员——数组排列计算
- ubuntu14.04挂载nfs
- javase的复习------1
- get和post的区别,你真的理解吗?
- Highways(prim——最小生成树)
- 如何去除导航栏底端线条
- poj 2367 Genealogical tree
- android如何读取视频