commit | author | age
|
dcdc07
|
1 |
// |
W |
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> |
34827e
|
10 |
#import <UIKit/UIKit.h> |
dcdc07
|
11 |
|
W |
12 |
@interface WAITrack : NSObject |
|
13 |
@property(strong,nonatomic)NSMutableDictionary *params; |
|
14 |
@property(nonatomic)double value; |
d3c3d0
|
15 |
@property(copy,nonatomic)NSDecimalNumber* numValue; |
dcdc07
|
16 |
@property(copy,nonatomic)NSString* eventName; |
W |
17 |
|
|
18 |
-(void)initTracker; |
|
19 |
-(void)trackWithEventName:(NSString *const)eventName valueToSum:(double)value params:(NSDictionary*)params; |
d3c3d0
|
20 |
-(void)trackWithEventName:(NSString *const)eventName numValueToSum:(NSDecimalNumber*)numValue params:(NSDictionary*)params; |
dcdc07
|
21 |
-(void)autoTriggerAfterPayment:(BOOL)isAuto; |
W |
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 |
* 在线时长 |
962836
|
61 |
* @param type 0->开启,1->关闭 |
dcdc07
|
62 |
*/ |
962836
|
63 |
-(void)session:(int)type; |
dcdc07
|
64 |
/** |
W |
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 |
/** |
34827e
|
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; |
|
156 |
/** |
dcdc07
|
157 |
* 自定义事件 |
W |
158 |
*/ |
|
159 |
-(void)custom; |
|
160 |
|
34827e
|
161 |
- (BOOL)application:(UIApplication *)application continueUserActivity:(NSUserActivity *)userActivity restorationHandler:(void (^)(NSArray * _Nullable))restorationHandler; |
H |
162 |
|
|
163 |
- (BOOL)application:(UIApplication *)application openURL:(NSURL *)url sourceApplication:(NSString *)sourceApplication annotation:(id)annotation; |
|
164 |
|
|
165 |
- (BOOL)application:(UIApplication *)app openURL:(NSURL *)url options:(NSDictionary<UIApplicationOpenURLOptionsKey,id> *)options; |
|
166 |
|
5e446c
|
167 |
|
L |
168 |
/* |
|
169 |
-2 iOS14 之前版本,无法弹出授权 |
|
170 |
-1 没有开启idfa授权弹框 |
|
171 |
0 未向用户请求授权 |
|
172 |
1 用户在系统级别开启了限制广告追踪 |
|
173 |
2 用户拒绝向App授权 |
|
174 |
3 用户同意向App授权 |
|
175 |
*/ |
|
176 |
|
|
177 |
- (void)openIDFAAuthorizationWithCompletionHandler:(void (^_Nullable)(int))block; |
|
178 |
|
dcdc07
|
179 |
@end |