@jolibox/ads 1.4.6 → 1.4.7
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/afv/index.d.ts +7 -0
- package/dist/index.js +411 -396
- package/package.json +4 -4
package/dist/afv/index.d.ts
CHANGED
|
@@ -10,8 +10,15 @@ export declare class JoliboxAdsForVideo {
|
|
|
10
10
|
private requestContext;
|
|
11
11
|
private adsRequest;
|
|
12
12
|
private initialized;
|
|
13
|
+
/** Preloaded ads info for the next requestAd() call */
|
|
14
|
+
private preloadedAd;
|
|
13
15
|
constructor(context?: IAdsContext<'DRAMA'>);
|
|
14
16
|
init(): Promise<void>;
|
|
17
|
+
/**
|
|
18
|
+
* Preload ads info and resolve provider options in advance.
|
|
19
|
+
* If preload fails, requestAd() will fall back to the normal flow.
|
|
20
|
+
*/
|
|
21
|
+
private preload;
|
|
15
22
|
/**
|
|
16
23
|
* Destroy all providers and reset the initialized state.
|
|
17
24
|
*/
|