-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathdefines.d.ts
More file actions
102 lines (92 loc) · 2.49 KB
/
defines.d.ts
File metadata and controls
102 lines (92 loc) · 2.49 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
declare const mraid: {
isReady: () => boolean;
isViewable: () => boolean;
getState: () => string;
addEventListener: (
event: 'viewableChange' | 'sizeChange' | 'ready' | 'audioVolumeChange' | 'stateChange' | 'error',
callback: (...args: any[]) => void
) => void;
removeEventListener: (
event: 'viewableChange' | 'sizeChange' | 'ready' | 'audioVolumeChange' | 'stateChange' | 'error',
callback: (...args: any[]) => void
) => void;
getMaxSize: () => { width: number; height: number };
openStoreUrl: () => void;
open: (url: string) => void;
getAudioVolume: () => number;
preloadStore?: () => void;
};
declare const dapi: {
addEventListener: (
event: 'viewableChange' | 'adResized' | 'ready' | 'audioVolumeChange' | 'error',
callback: (...args: any[]) => void
) => void;
removeEventListener: (
event: 'viewableChange' | 'adResized' | 'ready' | 'audioVolumeChange' | 'error',
callback: (...args: any[]) => void
) => void;
getScreenSize: () => { width: number; height: number };
openStoreUrl: () => void;
getAudioVolume: () => number;
isViewable: () => boolean;
isReady: () => boolean;
};
declare const NUC: {
trigger: {
convert: (destinationUrl: string) => void;
tryAgain: Function;
};
};
declare const ScPlayableAd: { onCTAClick: () => void };
declare const FbPlayableAd: { onCTAClick: () => void };
declare const smxTracking: { redirect: () => void };
declare const ExitApi: { exit: () => void };
declare const AD_NETWORK:
| 'preview'
| 'applovin'
| 'unity'
| 'google'
| 'ironsource'
| 'facebook'
| 'moloco'
| 'mintegral'
| 'vungle'
| 'adcolony'
| 'tapjoy'
| 'snapchat'
| 'tiktok'
| 'appreciate'
| 'chartboost'
| 'pangle'
| 'mytarget'
| 'liftoff'
| 'smadex'
| 'adikteev'
| 'bigabid'
| 'inmobi';
declare const AD_PROTOCOL: 'mraid' | 'dapi' | 'nucleo' | 'none';
declare const GOOGLE_PLAY_URL: string;
declare const APP_STORE_URL: string;
declare const BUILD_HASH: string;
interface Window {
PlayableSDK: any;
// Mintegral functions
gameReady: Function;
gameEnd: Function;
gameRetry: Function;
install: Function;
mintGameStart: Function;
mintGameClose: Function;
// Tapjoy functions
TJ_API: {
objectiveComplete: Function;
playableFinished: Function;
gameplayFinished: Function;
setPlayableBuild: Function;
setPlayableAPI: Function;
click: Function;
};
BIGABID_BIDTIMEMACROS?: Record<string, string>
INMOBI_DSPMACROS?: Record<string, string>
openAppStore: Function;
}