@adlad/plugin-poki
Version:
AdLad plugin for the Poki sdk.
39 lines (38 loc) • 1.33 kB
TypeScript
export function pokiPlugin(): {
readonly name: "poki";
readonly initialize: (ctx: any) => Promise<void>;
readonly manualNeedsMute: true;
readonly loadStop: () => Promise<void>;
readonly gameplayStart: () => Promise<void>;
readonly gameplayStop: () => Promise<void>;
readonly showFullScreenAd: () => Promise<{
didShowAd: boolean;
errorReason: any;
}>;
/**
* @param {Object} [options]
* @param {"small" | "medium" | "large"} [options.size]
*/
readonly showRewardedAd: ({ size }?: {
size?: "small" | "medium" | "large" | undefined;
} | undefined) => Promise<{
didShowAd: boolean;
errorReason: any;
}>;
readonly showBannerAd: (options: any) => void;
readonly destroyBannerAd: (options: any) => void;
readonly customRequests: {
/**
* @param {ConstructorParameters<typeof URLSearchParams>} args
*/
readonly getShareableUrl: (init?: string | Record<string, string> | URLSearchParams | string[][] | undefined) => Promise<any>;
/**
* @param {string} param
*/
readonly getUrlParam: (param: string) => any;
/**
* @param {HTMLCanvasElement} canvas
*/
readonly playtestSetCanvas: (canvas: HTMLCanvasElement) => void;
};
};