drgame-cc 1.0.42 → 1.0.44

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.
@@ -1,29 +1,29 @@
1
- /**
2
- * 聚合广告 SDK - 小米电视适配器类型声明
3
- */
4
-
5
- import { AdPlatform, AdEvent } from '../types/enums';
6
- import {
7
- IAdAdapter,
8
- IAdapterConfig,
9
- IAdRequest,
10
- IAdRewardResult,
11
- IDeviceInfo,
12
- IAccountInfo,
13
- IEventHandler,
14
- } from '../types/interfaces';
15
-
16
- export declare class XiaomiAdapter implements IAdAdapter {
17
- readonly platform: AdPlatform;
18
- init(config: IAdapterConfig): Promise<void>;
19
- requestAd(request: IAdRequest): Promise<IAdRewardResult>;
20
- destroy(): void;
21
- on(event: AdEvent, handler: IEventHandler): void;
22
- off(event: AdEvent, handler?: IEventHandler): void;
23
- getDeviceInfo(): Promise<IDeviceInfo>;
24
- getAccount(): Promise<IAccountInfo>;
25
- onGameReady(version: string): void;
26
- onGamePause(): void;
27
- onGameResume(): void;
28
- exitGame(): Promise<void>;
29
- }
1
+ /**
2
+ * 聚合广告 SDK - 小米电视适配器类型声明
3
+ */
4
+
5
+ import { AdPlatform, AdEvent } from '../types/enums';
6
+ import {
7
+ IAdAdapter,
8
+ IAdapterConfig,
9
+ IAdRequest,
10
+ IAdRewardResult,
11
+ IDeviceInfo,
12
+ IAccountInfo,
13
+ IEventHandler,
14
+ } from '../types/interfaces';
15
+
16
+ export declare class XiaomiAdapter implements IAdAdapter {
17
+ readonly platform: AdPlatform;
18
+ init(config: IAdapterConfig): Promise<void>;
19
+ requestAd(request: IAdRequest): Promise<IAdRewardResult>;
20
+ destroy(): void;
21
+ on(event: AdEvent, handler: IEventHandler): void;
22
+ off(event: AdEvent, handler?: IEventHandler): void;
23
+ getDeviceInfo(): Promise<IDeviceInfo>;
24
+ getAccount(): Promise<IAccountInfo>;
25
+ onGameReady(version: string): void;
26
+ onGamePause(): void;
27
+ onGameResume(): void;
28
+ exitGame(): Promise<void>;
29
+ }