-
Notifications
You must be signed in to change notification settings - Fork 39
/
Copy pathowads.d.ts
41 lines (38 loc) · 1.04 KB
/
owads.d.ts
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
export declare type EventDispCallback = (data: any) => void;
export declare class EventDispatcher {
addEventListener(
eventName: string,
listener: EventDispCallback): boolean;
removeEventListener(
eventName: string,
listener: EventDispCallback): boolean;
fireEvent(eventName: string, eventData: any): null | undefined;
}
export declare type OwAdOptionsSize = {
width: number;
height: number;
}
export interface OwAdOptions {
autoplay?: boolean;
size?: OwAdOptionsSize | OwAdOptionsSize[];
}
export declare class OwAd {
constructor(container: HTMLElement, options: OwAdOptions);
get uid(): string | null;
get version(): string;
get containerElem(): {
id: string;
};
play(): boolean;
pause(): boolean;
refreshAd(refreshOptions: any): boolean;
refreshCurrentWFstep(): void;
removeAd(): boolean;
shutdown(): Promise<void>;
addEventListener(
eventName: string,
listener: EventDispCallback): boolean;
removeEventListener(
eventName: string,
listener: EventDispCallback): boolean;
}