commit | author | age
|
dcdc07
|
1 |
// |
W |
2 |
// WATrackProxy.h |
|
3 |
// WASdkIntfUI |
|
4 |
// |
|
5 |
// Created by WA-T-01 on 16/3/1. |
|
6 |
// Copyright © 2016年 WA-T-01. All rights reserved. |
|
7 |
// |
|
8 |
|
|
9 |
#import <Foundation/Foundation.h> |
|
10 |
|
|
11 |
//数据类型 |
|
12 |
typedef enum WAParameterType{ |
|
13 |
WAParameterTypeString, |
|
14 |
WAParameterTypeInt, |
|
15 |
WAParameterTypeDouble, |
|
16 |
WAParameterTypeBool, |
|
17 |
WAParameterTypeEnumThree, |
|
18 |
WAParameterTypeData |
|
19 |
}WAParameterType; |
|
20 |
|
|
21 |
//支付类型 |
34827e
|
22 |
//typedef enum WAEnumPaymentType{ |
H |
23 |
// WAEnumPaymentTypeGoogle, |
|
24 |
// WAEnumPaymentTypeApple, |
|
25 |
// WAEnumPaymentTypeFree |
|
26 |
//}WAEnumPaymentType; |
dcdc07
|
27 |
|
W |
28 |
//性别 |
|
29 |
typedef enum WAEnumGender{ |
|
30 |
WAEnumGenderFemale, |
|
31 |
WAEnumGenderMale, |
|
32 |
WAEnumGenderUnknown |
|
33 |
}WAEnumGender; |
|
34 |
|
|
35 |
//levelType |
|
36 |
typedef enum WALevelType{ |
|
37 |
// Highest level reached |
|
38 |
WALevelTypeHighestLevelReached = 1, |
|
39 |
// Current area level reached |
|
40 |
WALevelTypeCurrentArea = 2, |
|
41 |
// Current character level reached |
|
42 |
WALevelTypeCharacterLevel = 3, |
|
43 |
// Other sequential level reached |
|
44 |
WALevelTypeOtherSequential = 4, |
|
45 |
// Current non sequential level reached |
|
46 |
WALevelTypeOtherNonsequential = 5 |
|
47 |
|
|
48 |
} WALevelType; |
|
49 |
|
|
50 |
|
|
51 |
|
|
52 |
|
|
53 |
extern NSString* WAEventParameterNameCustomMethodPrefix;//自定义事件名称前缀 |
|
54 |
|
|
55 |
|
1ac090
|
56 |
extern NSString* WAEventParameterNameApplePayLogCustomPrefix;//苹果支付自定义事件名称前缀 |
L |
57 |
|
|
58 |
|
dcdc07
|
59 |
extern NSString *const WAEventLaunch; |
W |
60 |
extern NSString *const WAEventStartUp; |
|
61 |
extern NSString *const WAEventCompleteRegistration; |
|
62 |
extern NSString *const WAEventLogin; |
|
63 |
extern NSString *const WAEventInitiatedPayment; |
|
64 |
extern NSString *const WAEventPayment; |
|
65 |
extern NSString *const WAEventInitiatedPurchase; |
|
66 |
extern NSString *const WAEventPurchase; |
|
67 |
extern NSString *const WAEventLevelAchieved; |
|
68 |
extern NSString *const WAEventAddToCart; |
|
69 |
extern NSString *const WAEventAddToWishlist; |
|
70 |
extern NSString *const WAEventSearch; |
|
71 |
extern NSString *const WAEventSpentCredits; |
|
72 |
extern NSString *const WAEventAchievementUnlocked; |
|
73 |
extern NSString *const WAEventContentView; |
|
74 |
extern NSString *const WAEventShare; |
|
75 |
extern NSString *const WAEventInvite; |
|
76 |
extern NSString *const WAEventReEngage; |
|
77 |
extern NSString *const WAEventUpdate; |
|
78 |
extern NSString *const WAEventOpenedFromPushNotification; |
|
79 |
extern NSString *const WAEventUserInfoUpdate; |
|
80 |
extern NSString *const WAEventUserCreate; |
|
81 |
extern NSString *const WAEventTaskUpdate; |
|
82 |
extern NSString *const WAEventGoldUpdate; |
|
83 |
extern NSString *const WAEventUserImport; |
962836
|
84 |
extern NSString *const WAEventSession; |
dcdc07
|
85 |
|
8913df
|
86 |
extern NSString *const WAEventAFTrackingInit; |
34827e
|
87 |
|
H |
88 |
extern NSString *const WAEventInitiatedLoginWay; // 获取登录方式之前 |
|
89 |
extern NSString *const WAEventPostLoginWay; // 获取登录方式之后 |
|
90 |
extern NSString *const WAEventInitiatedPlatformLogin; // 进行登录之前 |
|
91 |
extern NSString *const WAEventPostThirdPartyLogin; // 进行第三方渠道登录之后 |
|
92 |
extern NSString *const WAEventPostWingLogin; // 进行WING平台登录之后 |
8913df
|
93 |
|
1ac090
|
94 |
|
L |
95 |
//苹果支付事件上报打点事件名20200302 |
|
96 |
extern NSString *const WAEventForHandTransaction; //手动消耗事件 |
|
97 |
extern NSString *const WAEventForApplePayStateChanged; //苹果支付状态改变 |
|
98 |
extern NSString *const WAEventForOrderCheckNoTransaction; //下单检测未消耗事件 |
|
99 |
|
|
100 |
|
|
101 |
|
|
102 |
|
dcdc07
|
103 |
extern NSString *const WAEventParameterNameRegistrationMethod; |
W |
104 |
|
|
105 |
extern NSString *const WAEventParameterNameCurrencyType; |
|
106 |
extern NSString *const WAEventParameterNamePrice; |
|
107 |
extern NSString *const WAEventParameterNameContentType; |
|
108 |
extern NSString *const WAEventParameterNameContentID; |
|
109 |
extern NSString *const WAEventParameterNameQuantity; |
|
110 |
extern NSString *const WAEventParameterNameSearchString; |
|
111 |
extern NSString *const WAEventParameterNameSuccess ; |
|
112 |
extern NSString *const WAEventParameterNameMaxRatingValue; |
|
113 |
extern NSString *const WAEventParameterNamePaymentInfoAvailable; |
|
114 |
extern NSString *const WAEventParameterNameItemAmount; |
|
115 |
extern NSString *const WAEventParameterNameItemName;//道具名称 |
|
116 |
extern NSString *const WAEventParameterNameItemId; |
|
117 |
extern NSString *const WAEventParameterNameLevel ; |
|
118 |
extern NSString *const WAEventParameterNameLevelInfo; |
|
119 |
extern NSString *const WAEventParameterNameLevelType; |
|
120 |
extern NSString *const WAEventParameterNameScore; |
|
121 |
extern NSString *const WAEventParameterNameDescription ; |
|
122 |
|
|
123 |
extern NSString *const WAEventParameterNameGender; |
|
124 |
extern NSString *const WAEventParameterNameAge; |
|
125 |
extern NSString *const WAEventParameterNameAccountType; |
|
126 |
extern NSString *const WAEventParameterNameDeviceId; |
|
127 |
extern NSString *const WAEventParameterNameIDFA; |
|
128 |
extern NSString *const WAEventParameterNameServerId; |
|
129 |
|
|
130 |
extern NSString *const WAEventParameterNameStartTime; |
|
131 |
extern NSString *const WAEventParameterNameNowTime; |
962836
|
132 |
extern NSString *const WAEventParameterNameSessionType; |
1ac090
|
133 |
extern NSString *const WAEventParameterUnAdult; |
L |
134 |
|
dcdc07
|
135 |
extern NSString *const WAEventParameterNameTransactionId; |
W |
136 |
extern NSString *const WAEventParameterNamePaymentType; |
|
137 |
extern NSString *const WAEventParameterNameCurrencyAmount; |
|
138 |
extern NSString *const WAEventParameterNameVirtualCoinAmount; |
|
139 |
extern NSString *const WAEventParameterNameVirtualCurrency; |
|
140 |
extern NSString *const WAEventParameterNameIAPName; |
|
141 |
extern NSString *const WAEventParameterNamePaymentType; |
|
142 |
extern NSString *const WAEventParameterNameIAPAmount; |
|
143 |
extern NSString *const WAEventParameterNameIAPId; |
|
144 |
extern NSString *const WAEventParameterNameReceipt; |
|
145 |
extern NSString *const WAEventParameterNameProductIdentifier; |
962836
|
146 |
extern NSString *const WAEventParameterNameRevenue; |
dcdc07
|
147 |
|
W |
148 |
extern NSString *const WAEventParameterNameIsFirstEnter; |
|
149 |
|
|
150 |
extern NSString *const WAEventParameterNameTZ;//时区 |
|
151 |
extern NSString *const WAEventParameterNameDevice;//设备 |
|
152 |
extern NSString *const WAEventParameterNameProduct;//设备产品 |
|
153 |
extern NSString *const WAEventParameterNameModel;//设备版本 |
|
154 |
extern NSString *const WAEventParameterNameDeviceType;//类型 |
|
155 |
extern NSString *const WAEventParameterNameDeviceBrand;//品牌 |
|
156 |
extern NSString *const WAEventParameterNameOP;//运营商 |
|
157 |
extern NSString *const WAEventParameterNameNetwork;//网络制式 |
|
158 |
extern NSString *const WAEventParameterNameOS;//系统 |
|
159 |
extern NSString *const WAEventParameterNameResolution;//分辨率 |
|
160 |
|
5b23db
|
161 |
extern NSString *const WAEventParameterNameLoginPlatform ; |
L |
162 |
extern NSString *const WAEventParameterNamePuserId ; |
dcdc07
|
163 |
|
W |
164 |
|
|
165 |
extern NSString *const WAEventParameterNameOsign; |
|
166 |
|
|
167 |
//创建角色 |
|
168 |
extern NSString *const WAEventParameterNameRegisterTime;//注册时间 |
|
169 |
|
|
170 |
//玩家任务统计 |
|
171 |
extern NSString *const WAEventParameterNameTaskId;//任务id |
|
172 |
extern NSString *const WAEventParameterNameTaskName;//任务名称 |
|
173 |
extern NSString *const WAEventParameterNameTaskType;//任务类型 |
|
174 |
extern NSString *const WAEventParameterNameTaskStatus;//任务状态 |
|
175 |
|
|
176 |
|
|
177 |
//用户资料更新 |
|
178 |
extern NSString *const WAEventParameterNameNickName;//角色名称 |
|
179 |
extern NSString *const WAEventParameterNameVip;//vip等级 |
|
180 |
extern NSString *const WAEventParameterNameStatus;//状态 |
|
181 |
extern NSString *const WAEventParameterNameGameUserId;//游戏角色Id |
|
182 |
extern NSString *const WAEventParameterNameBindGameGold;//绑定钻石 |
|
183 |
extern NSString *const WAEventParameterNameGameGold;//用户钻石数 |
|
184 |
extern NSString *const WAEventParameterNameFighting;//战斗力 |
|
185 |
extern NSString *const WAEventParameterNameRoleType; |
|
186 |
|
|
187 |
//货币状况变更 |
|
188 |
extern NSString *const WAEventParameterNameGoldType;//货币类型 |
|
189 |
extern NSString *const WAEventParameterNameApproach;//变更途径 |
|
190 |
extern NSString *const WAEventParameterNameCurrentAmount;//当前货币数量 |
|
191 |
extern NSString *const WAEventParameterNameAmount;//变更货币数 |
|
192 |
|
34827e
|
193 |
// 获取登录方式之后 |
H |
194 |
extern NSString *const WAEventParameterNameLoginWayCount; // 登录方式个数 |
79188b
|
195 |
extern NSString *const WAEventShowLoginWindow; //打开登录框 |
07b050
|
196 |
extern NSString *const WAEventCall_Login_UI;//调用登录UI框 |
L |
197 |
extern NSString *const WAEventShow_Login_Window_Success ;//UI框显示成功 |
|
198 |
extern NSString *const WAEventPrivacyClick ;//点击登录框的隐私协议 |
|
199 |
|
248d1a
|
200 |
extern NSString *const WAEventOpenGameReview; //游戏评分点击选项 |
79188b
|
201 |
|
00c86c
|
202 |
extern NSString *const WAEventCMPResult; //cmp 弹框结果 |
79188b
|
203 |
|
34827e
|
204 |
|
H |
205 |
// 进行登录之前、进行第三方渠道登录之后、进行WING平台登录之后 |
|
206 |
extern NSString *const WAEventParameterNamePlatformName; // 登录渠道名称 |
|
207 |
extern NSString *const WAEventParameterNameLoginStatus; // 登录状态 |
2f0847
|
208 |
extern NSString *const WAEventParameterNameErrorMsg; // 错误信息 |
34827e
|
209 |
|
dcdc07
|
210 |
//支付类型 |
W |
211 |
extern NSString *const WAValueForPaymentTypeApple; |
|
212 |
extern NSString *const WAValueForPaymentTypeGoogle; |
|
213 |
extern NSString *const WAValueForPaymentTypeFree; |
248d1a
|
214 |
extern NSString *const WAValueForPaymentTypeH5Platform; |
dcdc07
|
215 |
|
W |
216 |
|
|
217 |
|
|
218 |
|
1ac090
|
219 |
|
L |
220 |
|
dcdc07
|
221 |
/*! |
W |
222 |
@discussion WATrackProxy 该类用来做数据收集 |
|
223 |
- - - |
|
224 |
*/ |
|
225 |
@interface WATrackProxy : NSObject |
|
226 |
/*! |
|
227 |
@discussion 该方法用来发送数据到各个渠道 |
|
228 |
@param eventName 事件名称 |
|
229 |
@param value 累加值 |
|
230 |
@param params 参数 |
|
231 |
*/ |
|
232 |
+(void)trackWithEventName:(NSString *const)eventName valueToSum:(double)value params:(NSDictionary*)params; |
|
233 |
/*! |
|
234 |
@discussion 该方法用来发送数据到指定渠道 |
|
235 |
@param eventName 事件名称 |
|
236 |
@param value 累加值 |
|
237 |
@param params 参数 |
|
238 |
@param platform 渠道 |
|
239 |
*/ |
|
240 |
+(void)trackWithEventName:(NSString *const)eventName valueToSum:(double)value params:(NSDictionary*)params platform:(NSString *const)platform; |
|
241 |
/*! |
|
242 |
@abstract 获取collectionInfo |
|
243 |
*/ |
|
244 |
+(NSString*)getCollectionInfo; |
|
245 |
|
|
246 |
/*! |
|
247 |
@discussion 设置点击充值事件(WAEventInitiatedPayment)和充值完成事件(WAEventPayment)是否自动统计,默认为自动统计 |
|
248 |
@param isAuto 是否自动统计事件 |
|
249 |
*/ |
|
250 |
|
|
251 |
+(void)autoTriggerAfterPayment:(BOOL)isAuto; |
|
252 |
+(BOOL)getAutoTriggerAfterPayment; |
|
253 |
+(void)checkParams:(NSDictionary*)params eventName:(NSString*)eventName; |
|
254 |
@end |