commit | author | age
|
d1f6ab
|
1 |
// |
H |
2 |
// WAITrack.h |
|
3 |
// WASdkIntfUI |
|
4 |
// |
|
5 |
// Created by GHW-T-01 on 16/3/1. |
|
6 |
// Copyright © 2016年 GHW-T-01. All rights reserved. |
|
7 |
// |
|
8 |
|
|
9 |
#import <Foundation/Foundation.h> |
45b3f1
|
10 |
#import <UIKit/UIKit.h> |
e0f1c2
|
11 |
NS_ASSUME_NONNULL_BEGIN |
d1f6ab
|
12 |
@interface WAITrack : NSObject |
H |
13 |
@property(strong,nonatomic)NSMutableDictionary *params; |
|
14 |
@property(nonatomic)double value; |
2e0222
|
15 |
@property(copy,nonatomic)NSDecimalNumber* numValue; |
d1f6ab
|
16 |
@property(copy,nonatomic)NSString* eventName; |
H |
17 |
|
|
18 |
-(void)initTracker; |
|
19 |
-(void)trackWithEventName:(NSString *const)eventName valueToSum:(double)value params:(NSDictionary*)params; |
2e0222
|
20 |
-(void)trackWithEventName:(NSString *const)eventName numValueToSum:(NSDecimalNumber*)numValue params:(NSDictionary*)params; |
d1f6ab
|
21 |
-(void)autoTriggerAfterPayment:(BOOL)isAuto; |
H |
22 |
-(BOOL)getAutoTriggerAfterPayment; |
|
23 |
-(NSString*)getCollectionInfo; |
|
24 |
|
|
25 |
|
|
26 |
-(void)eventNameTransfer:(NSString *)eventName; |
|
27 |
/** |
|
28 |
* 安装游戏 |
|
29 |
*/ |
|
30 |
-(void)launch; |
|
31 |
/** |
|
32 |
* 打开游戏 |
|
33 |
*/ |
|
34 |
-(void)startUp; |
|
35 |
/** |
|
36 |
* 注册账号 |
|
37 |
*/ |
|
38 |
-(void)register_; |
|
39 |
/** |
|
40 |
* 登录游戏 |
|
41 |
*/ |
|
42 |
-(void)login; |
|
43 |
/** |
|
44 |
* 点击充值 |
|
45 |
*/ |
|
46 |
-(void)initiatedPayment; |
|
47 |
/** |
|
48 |
* 充值完成 |
|
49 |
*/ |
|
50 |
-(void)payment; |
|
51 |
/** |
|
52 |
* 点击购买 |
|
53 |
*/ |
|
54 |
-(void)initiatedPurchase; |
|
55 |
/** |
|
56 |
* 购买完成 |
|
57 |
*/ |
|
58 |
-(void)purchase; |
|
59 |
/** |
|
60 |
* 在线时长 |
2e0222
|
61 |
* @param type 0->开启,1->关闭 |
d1f6ab
|
62 |
*/ |
2e0222
|
63 |
-(void)session:(int)type; |
d1f6ab
|
64 |
/** |
H |
65 |
* 等级或分数 |
|
66 |
*/ |
|
67 |
-(void)levelAchieve; |
|
68 |
/** |
|
69 |
* 加入购物车 |
|
70 |
*/ |
|
71 |
-(void)addToCart; |
|
72 |
/** |
|
73 |
* 兴趣标记/愿望 |
|
74 |
*/ |
|
75 |
-(void)addToWishlist; |
|
76 |
/** |
|
77 |
* 搜索内容 |
|
78 |
*/ |
|
79 |
-(void)search; |
|
80 |
/** |
|
81 |
* 使用信用点消费 |
|
82 |
*/ |
|
83 |
-(void)spentCredits; |
|
84 |
/** |
|
85 |
* 完成解锁事件 |
|
86 |
*/ |
|
87 |
-(void)achievementUnlocked; |
|
88 |
/** |
|
89 |
* 追踪内容查看事件 |
|
90 |
*/ |
|
91 |
-(void)contentView; |
|
92 |
/** |
|
93 |
* 分享事件 |
|
94 |
*/ |
|
95 |
-(void)share; |
|
96 |
/** |
|
97 |
* 邀请事件 |
|
98 |
*/ |
|
99 |
-(void)invite; |
|
100 |
/** |
|
101 |
* 重新连接到游戏 |
|
102 |
*/ |
|
103 |
-(void)reEngage; |
|
104 |
/** |
|
105 |
* 更新游戏 |
|
106 |
*/ |
|
107 |
-(void)update; |
|
108 |
/** |
|
109 |
* 打开推送通知 |
|
110 |
*/ |
|
111 |
-(void)openedFromPushNotification; |
|
112 |
/** |
|
113 |
* 创建角色 |
|
114 |
*/ |
|
115 |
-(void)userCreate; |
|
116 |
/** |
|
117 |
* 用户资料更新 |
|
118 |
*/ |
|
119 |
-(void)userInfoUpdate; |
|
120 |
/** |
|
121 |
* 玩家任务统计 |
|
122 |
*/ |
|
123 |
-(void)taskUpdate; |
|
124 |
/** |
|
125 |
* 货币状况变更 |
|
126 |
*/ |
|
127 |
-(void)goldUpdate; |
|
128 |
/** |
|
129 |
* 用户资料初始化 |
|
130 |
*/ |
|
131 |
-(void)userInfoInit; |
|
132 |
/** |
|
133 |
* 导入用户事件 |
|
134 |
*/ |
|
135 |
-(void)userImport; |
|
136 |
/** |
45b3f1
|
137 |
* 获取登录方式之前 |
H |
138 |
*/ |
|
139 |
-(void)initiatedLoginWay; |
|
140 |
/** |
|
141 |
* 获取登录方式之后 |
|
142 |
*/ |
|
143 |
-(void)postLoginWay; |
|
144 |
/** |
|
145 |
* 进行登录之前 |
|
146 |
*/ |
|
147 |
-(void)initiatedPlatformLogin; |
|
148 |
/** |
|
149 |
* 进行第三方渠道登录之后 |
|
150 |
*/ |
|
151 |
-(void)postThirdPartyLogin; |
|
152 |
/** |
|
153 |
* 进行WING平台登录之后 |
|
154 |
*/ |
|
155 |
-(void)postWingLogin; |
75be83
|
156 |
|
L |
157 |
/** |
|
158 |
* 弹出登录框时发送 |
|
159 |
*/ |
|
160 |
-(void)postShowLoginWindow; |
e0f1c2
|
161 |
|
L |
162 |
|
|
163 |
|
|
164 |
/** |
|
165 |
* cmp结果 |
|
166 |
*/ |
|
167 |
-(void)postCMPResult; |
45b3f1
|
168 |
/** |
d1f6ab
|
169 |
* 自定义事件 |
H |
170 |
*/ |
|
171 |
-(void)custom; |
|
172 |
|
45b3f1
|
173 |
- (BOOL)application:(UIApplication *)application continueUserActivity:(NSUserActivity *)userActivity restorationHandler:(void (^)(NSArray * _Nullable))restorationHandler; |
H |
174 |
|
|
175 |
- (BOOL)application:(UIApplication *)application openURL:(NSURL *)url sourceApplication:(NSString *)sourceApplication annotation:(id)annotation; |
|
176 |
|
|
177 |
- (BOOL)application:(UIApplication *)app openURL:(NSURL *)url options:(NSDictionary<UIApplicationOpenURLOptionsKey,id> *)options; |
e0f1c2
|
178 |
NS_ASSUME_NONNULL_END |
d1f6ab
|
179 |
@end |