video-ad-sdk
Version:
VAST/VPAID SDK that allows video ads to be played on top of any player
24 lines (23 loc) • 1.14 kB
TypeScript
/// <reference types="jest" />
import { Emitter } from '../helpers/Emitter';
import { handshakeVersion, initAd, startAd, stopAd, resumeAd, pauseAd, skipAd, setAdVolume, getAdVolume, resizeAd, getAdIcons, getAdDuration, getAdRemainingTime } from '../helpers/vpaid/api';
export declare class MockVpaidCreativeAd extends Emitter {
version: string;
volume: number;
constructor(version?: string);
[handshakeVersion]: jest.Mock<string, [], any>;
[initAd]: jest.Mock<any, any, any>;
[startAd]: jest.Mock<any, any, any>;
[stopAd]: jest.Mock<any, any, any>;
[resumeAd]: jest.Mock<any, any, any>;
[pauseAd]: jest.Mock<any, any, any>;
[skipAd]: jest.Mock<any, any, any>;
[getAdIcons]: jest.Mock<any, any, any>;
[getAdDuration]: jest.Mock<any, any, any>;
[getAdRemainingTime]: jest.Mock<any, any, any>;
[setAdVolume]: jest.Mock<void, [volume: any], any>;
[getAdVolume]: jest.Mock<number, [], any>;
[resizeAd]: jest.Mock<any, any, any>;
subscribe(listener: (...args: any[]) => void, event: string): void;
unsubscribe(listener: (...args: any[]) => void, event: string): void;
}