@singcl/ad-execute-manager 1.16.0-alpha.0 → 1.16.0-alpha.2
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.
|
@@ -169,6 +169,7 @@ declare class RewardAdNovel extends RewardAdFather {
|
|
|
169
169
|
recovered?: import("./typings/ad.js").RecoveredInfo;
|
|
170
170
|
}): any;
|
|
171
171
|
/**
|
|
172
|
+
* @private
|
|
172
173
|
* 广告展示超时设置
|
|
173
174
|
* @param {object} args
|
|
174
175
|
* @param {string} args.scene 广告执行场景 必填
|
|
@@ -176,12 +177,7 @@ declare class RewardAdNovel extends RewardAdFather {
|
|
|
176
177
|
* @param {Function} args.end 结束当前广告任务的回调函数 必填
|
|
177
178
|
* @param {boolean} [args.preserved] 是否在超时情况下保留广告实例 - 自用参数,非tt API要求的参数
|
|
178
179
|
*/
|
|
179
|
-
_setAdTimeout
|
|
180
|
-
scene: string;
|
|
181
|
-
timeout?: number;
|
|
182
|
-
end: Function;
|
|
183
|
-
preserved?: boolean;
|
|
184
|
-
}): void;
|
|
180
|
+
private _setAdTimeout;
|
|
185
181
|
/**
|
|
186
182
|
* 子类可以选择覆盖此方法
|
|
187
183
|
* 添加超时情况下结束任务前的回调
|
|
@@ -323,6 +319,8 @@ declare class RewardAdNovel extends RewardAdFather {
|
|
|
323
319
|
_recovered: import("./typings/ad.js").RecoveredInfo;
|
|
324
320
|
_preservedOnTimeout: boolean;
|
|
325
321
|
/**
|
|
322
|
+
* ATTENTION: 广告循环执行内部函数,如果需要循环执行,请使用adCircleInner()函数, 不要直接调用此函数
|
|
323
|
+
* @private
|
|
326
324
|
* @param {object} [ctx] 广告执行上下文
|
|
327
325
|
* @param {object} [ctx.options] 广告执行选项
|
|
328
326
|
* @param {number} [ctx.options.scene] 广告执行场景 必填
|
|
@@ -335,22 +333,12 @@ declare class RewardAdNovel extends RewardAdFather {
|
|
|
335
333
|
* @param {import('./typings/ad.js').RecoveredInfo} [ctx.recovered] 恢复重试信息
|
|
336
334
|
* @param {Function} next 执行下一个任务的回调函数,手动调用以继续执行流程
|
|
337
335
|
*/
|
|
338
|
-
_adInner
|
|
339
|
-
options?: {
|
|
340
|
-
scene?: number;
|
|
341
|
-
timeout?: number;
|
|
342
|
-
};
|
|
343
|
-
collection: {
|
|
344
|
-
resolve: (v?: unknown) => void;
|
|
345
|
-
before?: (v?: unknown) => void;
|
|
346
|
-
success?: (v?: unknown) => void;
|
|
347
|
-
prelude?: (v?: unknown) => void;
|
|
348
|
-
};
|
|
349
|
-
recovered?: import("./typings/ad.js").RecoveredInfo;
|
|
350
|
-
}, next?: Function): void;
|
|
336
|
+
private _adInner;
|
|
351
337
|
_before: (v?: unknown) => void;
|
|
352
338
|
_success: (v?: unknown) => void;
|
|
353
339
|
/**
|
|
340
|
+
* 广告循环执行
|
|
341
|
+
* @public
|
|
354
342
|
* @param {object} [ctx] 广告执行上下文
|
|
355
343
|
* @param {object} [ctx.options] 广告执行选项
|
|
356
344
|
* @param {number} [ctx.options.scene] 广告执行场景 必填
|
|
@@ -360,7 +348,7 @@ declare class RewardAdNovel extends RewardAdFather {
|
|
|
360
348
|
* @param {(v?: unknown) => void} [ctx.collection.success] 广告执行成功的回调函数
|
|
361
349
|
* @param {(v?: unknown) => void} [ctx.collection.prelude] 拉起广告前计时的回调函数
|
|
362
350
|
*/
|
|
363
|
-
adCircleInner(ctx?: {
|
|
351
|
+
public adCircleInner(ctx?: {
|
|
364
352
|
options?: {
|
|
365
353
|
scene?: number;
|
|
366
354
|
timeout?: number;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@singcl/ad-execute-manager",
|
|
3
|
-
"version": "1.16.0-alpha.
|
|
3
|
+
"version": "1.16.0-alpha.2",
|
|
4
4
|
"description": "A powerful and flexible ad execution management library for handling reward-based ads, interstitial ads, and other advertising formats in JavaScript applications.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|