@playcraft/adsdk 1.0.12 → 1.0.13-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/esm/index.js +201 -392
- package/dist/iife/index.js +250 -204
- package/dist/index.d.mts +91 -234
- package/dist/index.d.ts +91 -234
- package/dist/index.js +202 -394
- package/package.json +6 -2
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
type EventName = '
|
|
1
|
+
type EventName = 'playcraftInit' | 'playcraftReady' | 'playcraftStart' | 'playcraftInteractive' | 'playcraftInteraction' | 'playcraftChallengeStart' | 'playcraftChallengeProgress' | 'playcraftChallengeSuccess' | 'playcraftChallengeFailed' | 'playcraftResize' | 'playcraftPause' | 'playcraftResume' | 'playcraftVolume' | 'playcraftRetry' | 'playcraftFinish' | 'playcraftInstall';
|
|
2
2
|
|
|
3
3
|
type InitCallbackType = (maxWidth: number, maxHeight: number) => void;
|
|
4
4
|
/**
|
|
@@ -26,135 +26,114 @@ declare class sdk {
|
|
|
26
26
|
static volume: number;
|
|
27
27
|
/** Number of user interactions with the playable ad (auto-incremented on each touch/click) */
|
|
28
28
|
static interactions: number;
|
|
29
|
-
/** Number of successful game actions (e.g., successful matches, level clears).
|
|
30
|
-
* Controlled by calling sdk.recordSuccessCount(), NOT auto-incremented.
|
|
31
|
-
*/
|
|
32
|
-
static successCount: number;
|
|
33
29
|
/**
|
|
34
30
|
* Initializes the SDK and sets up protocol-specific handlers.
|
|
35
31
|
* This must be called as earlier as possible.
|
|
36
32
|
*
|
|
37
33
|
* @param callback Optional function called when ad container is ready
|
|
38
|
-
* @param options Optional configuration options
|
|
39
|
-
* @param options.totalSuccessCount Total number of successful actions expected for progress tracking.
|
|
40
|
-
* When set, the SDK will track success progress as a percentage and trigger
|
|
41
|
-
* channel-specific milestone events (e.g., AppLovin: CHALLENGE_PASS_25/50/75, CHALLENGE_SOLVED).
|
|
42
|
-
* Different channels monitor different percentage thresholds independently.
|
|
43
|
-
* Set to 0 or omit to disable progress tracking.
|
|
44
34
|
* @example
|
|
45
35
|
* // Basic initialization
|
|
46
|
-
* sdk.
|
|
36
|
+
* sdk.playcraftInit();
|
|
47
37
|
*
|
|
48
38
|
* // Initialization with callback
|
|
49
|
-
* sdk.
|
|
39
|
+
* sdk.playcraftInit((width, height) => {
|
|
50
40
|
* new App(width, height)
|
|
51
41
|
* });
|
|
52
42
|
*
|
|
53
|
-
*
|
|
54
|
-
*
|
|
55
|
-
* new App(width, height)
|
|
56
|
-
* }, { totalSuccessCount: 20 });
|
|
57
|
-
*
|
|
58
|
-
* @fires loading When SDK initialization starts
|
|
59
|
-
* @fires loaded When game instance is created and ready to load resources
|
|
43
|
+
* @fires playcraftInit When SDK initialization starts
|
|
44
|
+
* @fires playcraftReady When game instance is created and ready to load resources
|
|
60
45
|
*/
|
|
61
|
-
static
|
|
62
|
-
totalSuccessCount?: number;
|
|
63
|
-
}): void;
|
|
46
|
+
static playcraftInit(callback?: InitCallbackType): void;
|
|
64
47
|
/**
|
|
65
48
|
* Starts the playable ad experience.
|
|
66
49
|
* Should be called after all resources are loaded and first frame is rendered.
|
|
67
50
|
*
|
|
68
51
|
* @example
|
|
69
|
-
*
|
|
70
|
-
* sdk.start();
|
|
52
|
+
* sdk.playcraftStart();
|
|
71
53
|
*
|
|
72
|
-
* @fires
|
|
73
|
-
* @fires
|
|
54
|
+
* @fires playcraftStart When the playable ad starts
|
|
55
|
+
* @fires playcraftResize When the ad container is initially sized
|
|
74
56
|
*/
|
|
75
|
-
static
|
|
57
|
+
static playcraftStart(): void;
|
|
76
58
|
/**
|
|
77
59
|
* Marks the main scene as fully loaded and ready for user interaction.
|
|
78
60
|
* Should be called at the end of your main game scene's create() method.
|
|
79
61
|
*
|
|
80
62
|
* @example
|
|
81
|
-
* // In Phaser MainScene.create()
|
|
82
63
|
* create() {
|
|
83
64
|
* // ... all initialization code ...
|
|
84
|
-
* sdk.
|
|
65
|
+
* sdk.playcraftInteractive();
|
|
66
|
+
* }
|
|
67
|
+
*
|
|
68
|
+
* @fires playcraftInteractive When the main scene is ready for user interaction
|
|
69
|
+
*/
|
|
70
|
+
static playcraftInteractive(): void;
|
|
71
|
+
/**
|
|
72
|
+
* Marks the challenge as started.
|
|
73
|
+
* Should be called by business logic when the user actually starts playing.
|
|
74
|
+
*
|
|
75
|
+
* @example
|
|
76
|
+
* onFirstClick() {
|
|
77
|
+
* sdk.playcraftChallengeStart();
|
|
85
78
|
* }
|
|
86
79
|
*
|
|
87
|
-
* @fires
|
|
80
|
+
* @fires playcraftChallengeStart When the challenge starts
|
|
88
81
|
*/
|
|
89
|
-
static
|
|
82
|
+
static playcraftChallengeStart(): void;
|
|
90
83
|
/**
|
|
91
84
|
* Marks the playable ad as finished.
|
|
92
|
-
* This triggers network-specific completion handlers.
|
|
93
85
|
*
|
|
94
86
|
* @example
|
|
95
|
-
*
|
|
96
|
-
* sdk.finish();
|
|
87
|
+
* sdk.playcraftFinish();
|
|
97
88
|
*
|
|
98
|
-
* @fires
|
|
89
|
+
* @fires playcraftFinish When the playable ad is marked as finished
|
|
99
90
|
*/
|
|
100
|
-
static
|
|
91
|
+
static playcraftFinish(): void;
|
|
101
92
|
/**
|
|
102
93
|
* Triggers a retry/restart of the playable ad.
|
|
103
|
-
* Behavior varies by ad network.
|
|
104
94
|
*
|
|
105
95
|
* @example
|
|
106
|
-
*
|
|
107
|
-
* retryButton.onclick = () => sdk.retry();
|
|
96
|
+
* retryButton.onclick = () => sdk.playcraftRetry();
|
|
108
97
|
*
|
|
109
|
-
* @fires
|
|
98
|
+
* @fires playcraftRetry When a retry is triggered
|
|
110
99
|
*/
|
|
111
|
-
static
|
|
100
|
+
static playcraftRetry(): void;
|
|
112
101
|
/**
|
|
113
102
|
* Triggers the install/download action for the advertised app.
|
|
114
|
-
* Handles different store opening methods across ad networks.
|
|
115
103
|
*
|
|
116
104
|
* @example
|
|
117
|
-
*
|
|
118
|
-
* installButton.onclick = () => sdk.install();
|
|
105
|
+
* installButton.onclick = () => sdk.playcraftInstall();
|
|
119
106
|
*
|
|
120
|
-
* @fires
|
|
121
|
-
* @fires
|
|
107
|
+
* @fires playcraftFinish If the ad hasn't been marked as finished
|
|
108
|
+
* @fires playcraftInstall When the install action is triggered
|
|
122
109
|
*/
|
|
123
|
-
static
|
|
110
|
+
static playcraftInstall(params?: {
|
|
124
111
|
action_type: 'auto' | 'click';
|
|
125
112
|
timeout: number;
|
|
126
113
|
}): void;
|
|
127
114
|
/**
|
|
128
115
|
* Trigger force resize event
|
|
129
|
-
* Useful when container size changes need to be manually propagated.
|
|
130
116
|
*
|
|
131
117
|
* @example
|
|
132
|
-
* sdk.
|
|
118
|
+
* sdk.playcraftResize();
|
|
133
119
|
*
|
|
134
|
-
* @fires
|
|
120
|
+
* @fires playcraftResize With current maxWidth and maxHeight
|
|
135
121
|
*/
|
|
136
|
-
static
|
|
122
|
+
static playcraftResize(): void;
|
|
137
123
|
/**
|
|
138
|
-
* Records
|
|
139
|
-
*
|
|
140
|
-
*
|
|
124
|
+
* Records playable ad challenge progress (0-100).
|
|
125
|
+
* Triggers channel-specific milestone events based on the progress value.
|
|
126
|
+
* Milestones are not re-triggered once fired.
|
|
141
127
|
*
|
|
142
|
-
* @param
|
|
128
|
+
* @param percent Progress percentage (0-100)
|
|
143
129
|
*
|
|
144
130
|
* @example
|
|
145
|
-
* //
|
|
146
|
-
*
|
|
147
|
-
* sdk.recordSuccessCount();
|
|
148
|
-
* }
|
|
149
|
-
*
|
|
150
|
-
* // Record multiple successes at once
|
|
151
|
-
* onComboMatch(comboCount) {
|
|
152
|
-
* sdk.recordSuccessCount(comboCount);
|
|
153
|
-
* }
|
|
131
|
+
* // Report 50% progress
|
|
132
|
+
* sdk.recordPlaycraftChallengeProgress(50);
|
|
154
133
|
*
|
|
155
|
-
* @fires
|
|
134
|
+
* @fires playcraftChallengeProgress With the progress percentage value
|
|
156
135
|
*/
|
|
157
|
-
static
|
|
136
|
+
static recordPlaycraftChallengeProgress(percent: number): void;
|
|
158
137
|
/**
|
|
159
138
|
* Records a game success/completion event.
|
|
160
139
|
* Sends platform-specific success tracking events:
|
|
@@ -163,45 +142,40 @@ declare class sdk {
|
|
|
163
142
|
* - InMobi: Gameplay_Complete
|
|
164
143
|
*
|
|
165
144
|
* @example
|
|
166
|
-
* // When player completes the level
|
|
167
145
|
* onLevelComplete() {
|
|
168
|
-
* sdk.
|
|
146
|
+
* sdk.playcraftRecordSuccess();
|
|
169
147
|
* }
|
|
170
148
|
*/
|
|
171
|
-
static
|
|
149
|
+
static playcraftRecordSuccess(): void;
|
|
172
150
|
/**
|
|
173
151
|
* Records a game failure event.
|
|
174
152
|
* Sends platform-specific failure tracking events:
|
|
175
153
|
* - AppLovin: CHALLENGE_FAILED
|
|
176
154
|
*
|
|
177
155
|
* @example
|
|
178
|
-
* // When player fails the level
|
|
179
156
|
* onLevelFailed() {
|
|
180
|
-
* sdk.
|
|
157
|
+
* sdk.playcraftRecordFailed();
|
|
181
158
|
* }
|
|
182
159
|
*/
|
|
183
|
-
static
|
|
160
|
+
static playcraftRecordFailed(): void;
|
|
184
161
|
/**
|
|
185
162
|
* Forces the playable ad into a paused state.
|
|
186
163
|
*
|
|
187
164
|
* @example
|
|
188
|
-
*
|
|
189
|
-
* pauseButton.onclick = () => sdk.pause();
|
|
165
|
+
* pauseButton.onclick = () => sdk.playcraftPause();
|
|
190
166
|
*
|
|
191
|
-
* @fires
|
|
167
|
+
* @fires playcraftPause When the ad enters paused state
|
|
192
168
|
*/
|
|
193
|
-
static
|
|
169
|
+
static playcraftPause(): void;
|
|
194
170
|
/**
|
|
195
171
|
* Resumes the playable ad from a forced pause state.
|
|
196
|
-
* Only works if the ad was paused via sdk.pause().
|
|
197
172
|
*
|
|
198
173
|
* @example
|
|
199
|
-
*
|
|
200
|
-
* resumeButton.onclick = () => sdk.resume();
|
|
174
|
+
* resumeButton.onclick = () => sdk.playcraftResume();
|
|
201
175
|
*
|
|
202
|
-
* @fires
|
|
176
|
+
* @fires playcraftResume When the ad resumes from pause
|
|
203
177
|
*/
|
|
204
|
-
static
|
|
178
|
+
static playcraftResume(): void;
|
|
205
179
|
/**
|
|
206
180
|
* Registers an event listener.
|
|
207
181
|
*
|
|
@@ -210,15 +184,9 @@ declare class sdk {
|
|
|
210
184
|
* @param context Optional 'this' context for the callback
|
|
211
185
|
*
|
|
212
186
|
* @example
|
|
213
|
-
*
|
|
214
|
-
* sdk.on('interaction', (count) => {
|
|
187
|
+
* sdk.on('playcraftInteraction', (count) => {
|
|
215
188
|
* console.log(`User interaction #${count}`);
|
|
216
189
|
* });
|
|
217
|
-
*
|
|
218
|
-
* // Listen for resize with context
|
|
219
|
-
* sdk.on('resize', function(width, height) {
|
|
220
|
-
* this.updateLayout(width, height);
|
|
221
|
-
* }, gameInstance);
|
|
222
190
|
*/
|
|
223
191
|
static on(event: EventName, fn: Function, context?: any): void;
|
|
224
192
|
/**
|
|
@@ -229,8 +197,7 @@ declare class sdk {
|
|
|
229
197
|
* @param context Optional 'this' context for the callback
|
|
230
198
|
*
|
|
231
199
|
* @example
|
|
232
|
-
*
|
|
233
|
-
* sdk.once('interaction', () => {
|
|
200
|
+
* sdk.once('playcraftInteraction', () => {
|
|
234
201
|
* console.log('First user interaction occurred!');
|
|
235
202
|
* });
|
|
236
203
|
*/
|
|
@@ -239,20 +206,14 @@ declare class sdk {
|
|
|
239
206
|
* Removes an event listener.
|
|
240
207
|
*
|
|
241
208
|
* @param event Name of the event to stop listening for
|
|
242
|
-
* @param fn Optional callback function to remove
|
|
209
|
+
* @param fn Optional callback function to remove
|
|
243
210
|
* @param context Optional 'this' context to match when removing
|
|
244
211
|
*
|
|
245
212
|
* @example
|
|
246
|
-
*
|
|
247
|
-
* const handler = () => console.log('Interaction');
|
|
248
|
-
* sdk.off('interaction', handler);
|
|
249
|
-
*
|
|
250
|
-
* // Remove all listeners for an event
|
|
251
|
-
* sdk.off('interaction');
|
|
213
|
+
* sdk.off('playcraftInteraction', handler);
|
|
252
214
|
*/
|
|
253
215
|
static off(event: EventName, fn?: Function, context?: any): void;
|
|
254
216
|
/**
|
|
255
|
-
*
|
|
256
217
|
* @returns 当前渠道
|
|
257
218
|
*/
|
|
258
219
|
static getCurChannel(): "applovin" | "ironsource" | "unity" | "mintegral" | "preview" | "google" | "facebook" | "moloco" | "vungle" | "adcolony" | "tapjoy" | "snapchat" | "tiktok" | "appreciate" | "chartboost" | "pangle" | "mytarget" | "liftoff" | "smadex" | "adikteev" | "bigabid" | "inmobi" | "bigoads";
|
|
@@ -260,6 +221,36 @@ declare class sdk {
|
|
|
260
221
|
* 判断是否是 Google
|
|
261
222
|
*/
|
|
262
223
|
static isGoogle(): boolean;
|
|
224
|
+
/**
|
|
225
|
+
* 设置主题配置,支持传入多份 JSON5 配置。
|
|
226
|
+
* 每一份配置都可以是 JSON Schema(带 $schema 字段),会自动提取其中的 default 值。
|
|
227
|
+
* 所有配置按顺序依次深度合并,后面的优先级更高。
|
|
228
|
+
*
|
|
229
|
+
* @param configList - 配置数组,每一项可以是:
|
|
230
|
+
* - JSON Schema(带 $schema 字段):自动提取 default 值后参与合并
|
|
231
|
+
* - 普通配置对象:直接参与合并
|
|
232
|
+
* @param config - 额外配置项
|
|
233
|
+
* - config.assetRecordByPath: 相对路径到已解析 URL 的映射
|
|
234
|
+
*
|
|
235
|
+
* @example
|
|
236
|
+
* sdk.setConfig(
|
|
237
|
+
* [schemaA, schemaB, themeData],
|
|
238
|
+
* { assetRecordByPath: imageAssets }
|
|
239
|
+
* );
|
|
240
|
+
*/
|
|
241
|
+
static setConfig(configList: any[], config: any): void;
|
|
242
|
+
/**
|
|
243
|
+
* 获取合并后的主题配置。
|
|
244
|
+
* 返回 schema 默认值与用户主题数据深度合并后的结果。
|
|
245
|
+
* 必须先调用 sdk.setConfig() 才能使用此方法。
|
|
246
|
+
*
|
|
247
|
+
* @returns 合并后的主题配置对象
|
|
248
|
+
*
|
|
249
|
+
* @example
|
|
250
|
+
* const config = sdk.getConfig();
|
|
251
|
+
* console.log(config.primaryColor); // '#ff0000'
|
|
252
|
+
*/
|
|
253
|
+
static getConfig(): Record<string, any>;
|
|
263
254
|
}
|
|
264
255
|
|
|
265
256
|
/**
|
|
@@ -279,138 +270,4 @@ declare function hideWechatGuide(): void;
|
|
|
279
270
|
*/
|
|
280
271
|
declare function removeWechatGuide(): void;
|
|
281
272
|
|
|
282
|
-
|
|
283
|
-
* 设置交互总数
|
|
284
|
-
*/
|
|
285
|
-
declare function setTotalInteractions(total: number): void;
|
|
286
|
-
/**
|
|
287
|
-
* 检查交互进度,触发对应里程碑
|
|
288
|
-
*/
|
|
289
|
-
declare function checkInteractionProgress(currentInteractions: number): void;
|
|
290
|
-
/**
|
|
291
|
-
* init 事件:SDK 初始化开始
|
|
292
|
-
* 渠道埋点: Bigabid:mraid_viewable | InMobi:Ad_Load_Start | AppLovin:LOADING
|
|
293
|
-
* 同时初始化进度里程碑
|
|
294
|
-
* @param adNetwork - 可选的广告渠道名称,不传则使用全局 AD_NETWORK
|
|
295
|
-
*/
|
|
296
|
-
declare function _onInit(adNetwork?: string): void;
|
|
297
|
-
/**
|
|
298
|
-
* start 事件:游戏资源加载完成
|
|
299
|
-
* 渠道埋点: Bigabid:game_viewable | InMobi:Ad_Viewable | AppLovin:LOADED
|
|
300
|
-
* @param adNetwork - 可选的广告渠道名称,不传则使用全局 AD_NETWORK
|
|
301
|
-
*/
|
|
302
|
-
declare function _onStart(adNetwork?: string): void;
|
|
303
|
-
/**
|
|
304
|
-
* interactive 事件:主场景就绪,用户可交互
|
|
305
|
-
* 渠道埋点: AppLovin:DISPLAYED
|
|
306
|
-
* @param adNetwork - 可选的广告渠道名称,不传则使用全局 AD_NETWORK
|
|
307
|
-
*/
|
|
308
|
-
declare function _onInteractive(adNetwork?: string): void;
|
|
309
|
-
/**
|
|
310
|
-
* interaction 事件:首次交互
|
|
311
|
-
* 渠道埋点: Bigabid:engagement | InMobi:First_Engagement | AppLovin:CHALLENGE_STARTED
|
|
312
|
-
* @param adNetwork - 可选的广告渠道名称,不传则使用全局 AD_NETWORK
|
|
313
|
-
*/
|
|
314
|
-
declare function _onInteraction(adNetwork?: string): void;
|
|
315
|
-
/**
|
|
316
|
-
* success 事件:成功计数(用于进度百分比追踪)
|
|
317
|
-
*/
|
|
318
|
-
declare function _onSuccess(successCount: number): void;
|
|
319
|
-
/**
|
|
320
|
-
* finish 事件:游戏结束
|
|
321
|
-
* 渠道埋点: Bigabid:complete | InMobi:Gameplay_Complete | AppLovin:ENDCARD_SHOWN
|
|
322
|
-
* @param adNetwork - 可选的广告渠道名称,不传则使用全局 AD_NETWORK
|
|
323
|
-
*/
|
|
324
|
-
declare function _onFinish(adNetwork?: string): void;
|
|
325
|
-
/**
|
|
326
|
-
* install 事件:点击安装
|
|
327
|
-
* 渠道埋点: Bigabid:click | InMobi:DSP_Click | AppLovin:CTA_CLICKED
|
|
328
|
-
* @param adNetwork - 可选的广告渠道名称,不传则使用全局 AD_NETWORK
|
|
329
|
-
*/
|
|
330
|
-
declare function _onInstall(adNetwork?: string): void;
|
|
331
|
-
/**
|
|
332
|
-
* retry 事件:重试游戏
|
|
333
|
-
* 渠道埋点: AppLovin:CHALLENGE_RETRY
|
|
334
|
-
* @param adNetwork - 可选的广告渠道名称,不传则使用全局 AD_NETWORK
|
|
335
|
-
*/
|
|
336
|
-
declare function _onRetry(adNetwork?: string): void;
|
|
337
|
-
/**
|
|
338
|
-
* 触发游戏成功事件
|
|
339
|
-
* 不同渠道发送对应的成功埋点
|
|
340
|
-
* @param adNetwork - 可选的广告渠道名称,不传则使用全局 AD_NETWORK
|
|
341
|
-
*/
|
|
342
|
-
declare function _trackChallengeSuccess(adNetwork?: string): void;
|
|
343
|
-
/**
|
|
344
|
-
* 触发游戏失败事件
|
|
345
|
-
* 不同渠道发送对应的失败埋点
|
|
346
|
-
* @param adNetwork - 可选的广告渠道名称,不传则使用全局 AD_NETWORK
|
|
347
|
-
*/
|
|
348
|
-
declare function _trackChallengeFailed(adNetwork?: string): void;
|
|
349
|
-
/**
|
|
350
|
-
* 统一的埋点追踪对象
|
|
351
|
-
* 包含所有 SDK 事件的埋点方法
|
|
352
|
-
*/
|
|
353
|
-
declare const tracking: {
|
|
354
|
-
/**
|
|
355
|
-
* SDK 初始化开始
|
|
356
|
-
* @param adNetwork - 可选的广告渠道名称
|
|
357
|
-
*/
|
|
358
|
-
onInit: typeof _onInit;
|
|
359
|
-
/**
|
|
360
|
-
* 游戏资源加载完成
|
|
361
|
-
* @param adNetwork - 可选的广告渠道名称
|
|
362
|
-
*/
|
|
363
|
-
onStart: typeof _onStart;
|
|
364
|
-
/**
|
|
365
|
-
* 主场景就绪,用户可交互
|
|
366
|
-
* @param adNetwork - 可选的广告渠道名称
|
|
367
|
-
*/
|
|
368
|
-
onInteractive: typeof _onInteractive;
|
|
369
|
-
/**
|
|
370
|
-
* 首次交互
|
|
371
|
-
* @param adNetwork - 可选的广告渠道名称
|
|
372
|
-
*/
|
|
373
|
-
onInteraction: typeof _onInteraction;
|
|
374
|
-
/**
|
|
375
|
-
* 成功计数(用于进度百分比追踪)
|
|
376
|
-
* @param successCount - 当前成功次数
|
|
377
|
-
*/
|
|
378
|
-
onSuccess: typeof _onSuccess;
|
|
379
|
-
/**
|
|
380
|
-
* 游戏结束
|
|
381
|
-
* @param adNetwork - 可选的广告渠道名称
|
|
382
|
-
*/
|
|
383
|
-
onFinish: typeof _onFinish;
|
|
384
|
-
/**
|
|
385
|
-
* 点击安装
|
|
386
|
-
* @param adNetwork - 可选的广告渠道名称
|
|
387
|
-
*/
|
|
388
|
-
onInstall: typeof _onInstall;
|
|
389
|
-
/**
|
|
390
|
-
* 重试游戏
|
|
391
|
-
* @param adNetwork - 可选的广告渠道名称
|
|
392
|
-
*/
|
|
393
|
-
onRetry: typeof _onRetry;
|
|
394
|
-
/**
|
|
395
|
-
* 设置交互总数(用于进度百分比计算)
|
|
396
|
-
* @param total - 交互总数
|
|
397
|
-
*/
|
|
398
|
-
setTotalInteractions: typeof setTotalInteractions;
|
|
399
|
-
/**
|
|
400
|
-
* 检查交互进度
|
|
401
|
-
* @param currentInteractions - 当前交互次数
|
|
402
|
-
*/
|
|
403
|
-
checkInteractionProgress: typeof checkInteractionProgress;
|
|
404
|
-
/**
|
|
405
|
-
* 触发游戏成功事件
|
|
406
|
-
* @param adNetwork - 可选的广告渠道名称
|
|
407
|
-
*/
|
|
408
|
-
trackChallengeSuccess: typeof _trackChallengeSuccess;
|
|
409
|
-
/**
|
|
410
|
-
* 触发游戏失败事件
|
|
411
|
-
* @param adNetwork - 可选的广告渠道名称
|
|
412
|
-
*/
|
|
413
|
-
trackChallengeFailed: typeof _trackChallengeFailed;
|
|
414
|
-
};
|
|
415
|
-
|
|
416
|
-
export { sdk as default, hideWechatGuide, removeWechatGuide, sdk, showWechatGuide, tracking };
|
|
273
|
+
export { sdk as default, hideWechatGuide, removeWechatGuide, sdk, showWechatGuide };
|