forked from GameAnalytics/GA-SDK-STENCYL
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathblocks.xml
More file actions
298 lines (260 loc) · 13.8 KB
/
blocks.xml
File metadata and controls
298 lines (260 loc) · 13.8 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<palette>
<!-- Initialize and settings -->
<block tag="initialise-gameanalytics-ios" spec="[c:gasdk] Initialize with gameKey: %0 and secretKey: %1" code="extension.ga.GameAnalytics.initialize(~,~);" type="action" color="charcoal" returns="void" deprecated="true" hidden="true">
<fields>
<text order="0"></text>
<text order="1"></text>
</fields>
</block>
<block tag="initialise-gameanalytics-android" spec="[c:gasdk] Initialize with gameKey: %0 and secretKey: %1" code="extension.ga.GameAnalytics.initialize(~,~);" type="action" color="charcoal" returns="void" deprecated="true" hidden="true">
<fields>
<text order="0"></text>
<text order="1"></text>
</fields>
</block>
<block tag="initialise-gameanalytics" spec="[c:gasdk] Initialize with gameKey: %0 and secretKey: %1" code="extension.ga.GameAnalytics.initialize(~,~);" type="action" color="charcoal" returns="void">
<fields>
<text order="0"></text>
<text order="1"></text>
</fields>
</block>
<block tag="enable-event-submission-gameanalytics" spec="[c:gasdk] Enable event submission: %0" code="extension.ga.GameAnalytics.setEnabledEventSubmission(~);" type="action" color="charcoal" returns="void">
<fields>
<dropdown order="0">
<choices>
<c text="true" code="true"></c>
<c text="false" code="false"></c>
</choices>
</dropdown>
</fields>
</block>
<block tag="enable-verbose-gameanalytics" spec="[c:gasdk] Enable verbose log: %0" code="extension.ga.GameAnalytics.setEnabledVerboseLog(~);" type="action" color="charcoal" returns="void">
<fields>
<dropdown order="0">
<choices>
<c text="true" code="true"></c>
<c text="false" code="false"></c>
</choices>
</dropdown>
</fields>
</block>
<block tag="enable-info-gameanalytics" spec="[c:gasdk] Enable info log: %0" code="extension.ga.GameAnalytics.setEnabledInfoLog(~);" type="action" color="charcoal" returns="void">
<fields>
<dropdown order="0">
<choices>
<c text="true" code="true"></c>
<c text="false" code="false"></c>
</choices>
</dropdown>
</fields>
</block>
<block tag="configure-build-ios-gameanalytics" spec="[c:gasdk] Configure build ID: %0" code="extension.ga.GameAnalytics.configureBuild(~);" type="action" color="charcoal" returns="void" deprecated="true" hidden="true">
<fields>
<text order="0"></text>
</fields>
</block>
<block tag="configure-build-android-gameanalytics" spec="[c:gasdk] Configure build ID: %0" code="extension.ga.GameAnalytics.configureBuild(~);" type="action" color="charcoal" returns="void" deprecated="true" hidden="true">
<fields>
<text order="0"></text>
</fields>
</block>
<block tag="configure-build-gameanalytics" spec="[c:gasdk] Configure build ID: %0" code="extension.ga.GameAnalytics.configureBuild(~);" type="action" color="charcoal" returns="void">
<fields>
<text order="0"></text>
</fields>
</block>
<block tag="configure-user-id-gameanalytics" spec="[c:gasdk] Configure user ID: %0" code="extension.ga.GameAnalytics.configureUserId(~);" type="action" color="charcoal" help="GameAnalytics already handles very well user IDs without using this setting. Use it only if it is needed." returns="void">
<fields>
<text order="0"></text>
</fields>
</block>
<block tag="configure-resource-currencies-gameanalytics" spec="[c:gasdk] Configure resource currencies: %0" code="extension.ga.GameAnalytics.configureAvailableResourceCurrencies(~);" type="action" color="charcoal" returns="void">
<fields>
<text order="0"></text>
</fields>
</block>
<block tag="configure-resource-item-types-gameanalytics" spec="[c:gasdk] Configure resource item types: %0" code="extension.ga.GameAnalytics.configureAvailableResourceItemTypes(~);" type="action" color="charcoal" returns="void">
<fields>
<text order="0"></text>
</fields>
</block>
<block tag="configure-custom-dimensions-01-gameanalytics" spec="[c:gasdk] Configure custom dimensions 01: %0" code="extension.ga.GameAnalytics.configureAvailableCustomDimensions01(~);" type="action" color="charcoal" returns="void">
<fields>
<text order="0"></text>
</fields>
</block>
<block tag="configure-custom-dimensions-02-gameanalytics" spec="[c:gasdk] Configure custom dimensions 02: %0" code="extension.ga.GameAnalytics.configureAvailableCustomDimensions02(~);" type="action" color="charcoal" returns="void">
<fields>
<text order="0"></text>
</fields>
</block>
<block tag="configure-custom-dimensions-03-gameanalytics" spec="[c:gasdk] Configure custom dimensions 03: %0" code="extension.ga.GameAnalytics.configureAvailableCustomDimensions03(~);" type="action" color="charcoal" returns="void">
<fields>
<text order="0"></text>
</fields>
</block>
<block tag="custom01-gameanalytics" spec="[c:gasdk] Set custom dimension 01: %0" code="extension.ga.GameAnalytics.setCustomDimension01(~);" type="action" color="charcoal" returns="void">
<fields>
<text order="0"></text>
</fields>
</block>
<block tag="custom02-gameanalytics" spec="[c:gasdk] Set custom dimension 02: %0" code="extension.ga.GameAnalytics.setCustomDimension02(~);" type="action" color="charcoal" returns="void">
<fields>
<text order="0"></text>
</fields>
</block>
<block tag="custom03-gameanalytics" spec="[c:gasdk] Set custom dimension 03: %0" code="extension.ga.GameAnalytics.setCustomDimension03(~);" type="action" color="charcoal" returns="void">
<fields>
<text order="0"></text>
</fields>
</block>
<block tag="gender-gameanalytics" spec="[c:gasdk] Set gender: %0" code="extension.ga.GameAnalytics.setGender(~);" type="action" color="charcoal" returns="void" deprecated="true">
<fields>
<text order="0"></text>
</fields>
</block>
<block tag="birth-year-gameanalytics" spec="[c:gasdk] Set birth year: %0" code="extension.ga.GameAnalytics.setBirthYear(~);" type="action" color="charcoal" returns="void" deprecated="true">
<fields>
<int order="0"></int>
</fields>
</block>
<!-- Events -->
<block tag="design-event-gameanalytics" spec="[c:gasdk] Create analytics Design event with ID: %0" code="extension.ga.GameAnalytics.sendDesignEvent(~);" type="action" color="green" returns="void">
<fields>
<text order="0"></text>
</fields>
</block>
<block tag="design-event-with-amount-gameanalytics" spec="[c:gasdk] Create Design event with ID: %0 and amount %1" code="extension.ga.GameAnalytics.sendDesignEventWithAmount(~,~);" type="action" color="green" returns="void">
<fields>
<text order="0"></text>
<number order="1"></number>
</fields>
</block>
<block tag="business-event-js-gameanalytics" spec="[c:gasdk] Create JS Business event with currency: %0 amount: %1 item type: %2 item ID: %3 and cart type: %4" code="extension.ga.GameAnalytics.sendBusinessEventJs(~,~,~,~,~);" type="action" color="lime" returns="void">
<fields>
<text order="0"></text>
<int order="1"></int>
<text order="2"></text>
<text order="3"></text>
<text order="4"></text>
</fields>
</block>
<block tag="business-event-ios-gameanalytics" spec="[c:gasdk] Create iOS Business event with currency: %0 amount: %1 item type: %2 item ID: %3 cart type: %4 and receipt: %5" code="extension.ga.GameAnalytics.sendBusinessEventIOS(~,~,~,~,~,~);" type="action" color="lime" returns="void">
<fields>
<text order="0"></text>
<int order="1"></int>
<text order="2"></text>
<text order="3"></text>
<text order="4"></text>
<text order="5"></text>
</fields>
</block>
<block tag="business-event-android-gameanalytics" spec="[c:gasdk] Create Android Business event with currency: %0 amount: %1 item type: %2 item ID: %3 cart type: %4 receipt: %5 and signature: %6" code="extension.ga.GameAnalytics.sendBusinessEventAndroid(~,~,~,~,~,~,~);" type="action" color="lime" returns="void">
<fields>
<text order="0"></text>
<int order="1"></int>
<text order="2"></text>
<text order="3"></text>
<text order="4"></text>
<text order="5"></text>
<text order="6"></text>
</fields>
</block>
<block tag="resource-event-gameanalytics" spec="[c:gasdk] Create Resource event with flow type: %0, currency: %1, amount: %2, item type: %3, item ID: %4" code="extension.ga.GameAnalytics.sendResourceEvent(~,~,~,~,~);" type="action" color="green" returns="void">
<fields>
<dropdown order="0">
<choices>
<c text="Source flow type" code="extension.ga.GADef.GAFlowType.Source"></c>
<c text="Sink flow type" code="extension.ga.GADef.GAFlowType.Sink"></c>
</choices>
</dropdown>
<text order="1"></text>
<int order="2"></int>
<text order="3"></text>
<text order="4"></text>
</fields>
</block>
<block tag="progression-event-with-one-progression-gameanalytics" spec="[c:gasdk] Create Progression event with status: %0, progression01: %1 and score: %2" code="extension.ga.GameAnalytics.sendProgressionEvent(~,~,~);" type="action" color="green" help="If there is no need of using 'score' then this field should be set to 0." returns="void">
<fields>
<dropdown order="0">
<choices>
<c text="Start" code="extension.ga.GADef.GAProgression.Started"></c>
<c text="Complete" code="extension.ga.GADef.GAProgression.Complete"></c>
<c text="Fail" code="extension.ga.GADef.GAProgression.Fail"></c>
</choices>
</dropdown>
<text order="1"></text>
<int order="2"></int>
</fields>
</block>
<block tag="progression-event-with-two-progression-gameanalytics" spec="[c:gasdk] Create Progression event with status: %0, progression01: %1, progression02: %2 and score: %3" code="extension.ga.GameAnalytics.sendProgressionEvent(~,~,~,~);" type="action" color="green" help="If there is no need of using 'score' then this field should be set to 0." returns="void">
<fields>
<dropdown order="0">
<choices>
<c text="Start" code="extension.ga.GADef.GAProgression.Started"></c>
<c text="Complete" code="extension.ga.GADef.GAProgression.Complete"></c>
<c text="Fail" code="extension.ga.GADef.GAProgression.Fail"></c>
</choices>
</dropdown>
<text order="1"></text>
<text order="2"></text>
<int order="3"></int>
</fields>
</block>
<block tag="progression-event-with-three-progression-gameanalytics" spec="[c:gasdk] Create Progression event with status: %0, progression01: %1, progression02: %2, progression03: %3 and score: %4" code="extension.ga.GameAnalytics.sendProgressionEvent(~,~,~,~,~);" type="action" color="green" help="If there is no need of using 'score' then this field should be set to 0." returns="void">
<fields>
<dropdown order="0">
<choices>
<c text="Start" code="extension.ga.GADef.GAProgression.Started"></c>
<c text="Complete" code="extension.ga.GADef.GAProgression.Complete"></c>
<c text="Fail" code="extension.ga.GADef.GAProgression.Fail"></c>
</choices>
</dropdown>
<text order="1"></text>
<text order="2"></text>
<text order="3"></text>
<int order="4"></int>
</fields>
</block>
<block tag="error-event-gameanalytics" spec="[c:gasdk] Create Error event with severity: %0 and message: %1" code="extension.ga.GameAnalytics.sendErrorEvent(~,~);" type="action" color="red" returns="void">
<fields>
<dropdown order="0">
<choices>
<c text="Debug" code="extension.ga.GADef.GAErrorSeverity.Debug"></c>
<c text="Info" code="extension.ga.GADef.GAErrorSeverity.Info"></c>
<c text="Warning" code="extension.ga.GADef.GAErrorSeverity.Warning"></c>
<c text="Error" code="extension.ga.GADef.GAErrorSeverity.Error"></c>
<c text="Critical" code="extension.ga.GADef.GAErrorSeverity.Critical"></c>
</choices>
</dropdown>
<text order="1"></text>
</fields>
</block>
<!-- Manual session handling -->
<block tag="set-enabled-manual-session-handling-gameanalytics" spec="[c:gasdk] Enable manual session handling" code="extension.ga.GameAnalytics.setEnableManualSessionHandling();" type="action" color="charcoal" returns="void" deprecated="true" hidden="true">
</block>
<block tag="set-enabled-value-manual-session-handling-gameanalytics" spec="[c:gasdk] Enable manual session handling: %0" code="extension.ga.GameAnalytics.setEnableManualSessionHandling(~);" type="action" color="charcoal" returns="void">
<fields>
<boolean order="0"></boolean>
</fields>
</block>
<block tag="start-session-gameanalytics" spec="[c:gasdk] Start session" code="extension.ga.GameAnalytics.startSession();" type="action" color="charcoal" help="This can be used only if manual session handling is enabled (not recommended)." returns="void">
</block>
<block tag="end-session-gameanalytics" spec="[c:gasdk] End session" code="extension.ga.GameAnalytics.endSession();" type="action" color="charcoal" help="This can be used only if manual session handling is enabled (not recommended)." returns="void">
</block>
<!-- Command Center -->
<block tag="is-command-center-ready-gameanalytics" spec="[c:gasdk] Is Command Center ready" code="extension.ga.GameAnalytics.isCommandCenterReady()" type="normal" color="charcoal" help="Check if the Command Center has finished fetching the remote configs from GameAnalytics" returns="boolean">
</block>
<block tag="get-command-center-value-gameanalytics" spec="[c:gasdk] Get Command Center value with key: %0" code="extension.ga.GameAnalytics.getCommandCenterValueAsString(~)" type="normal" color="charcoal" help="Retrieve a remote config by key from GameAnalytics. Check if Command Center is ready when using." returns="text">
<fields>
<text order="0"></text>
</fields>
</block>
<block tag="get-command-center-value-with-default-value-gameanalytics" spec="[c:gasdk] Get Command Center value with key: %0 and default value: %1" code="extension.ga.GameAnalytics.getCommandCenterValueAsStringWithDefVal(~,~)" type="normal" color="charcoal" help="Retrieve a remote config by key from GameAnalytics. If there is no config for the given key, the default value is returned. Check if Command Center is ready when using." returns="text">
<fields>
<text order="0"></text>
<text order="1"></text>
</fields>
</block>
</palette>