interface Window {
    initMeasuredWallpaperAsync: ((elementSelector: string, options: WallpaperFrameOptions) => Promise<WallpaperFrame>);
}

Properties

initMeasuredWallpaperAsync: ((elementSelector: string, options: WallpaperFrameOptions) => Promise<WallpaperFrame>)

Method to the simplify initialization of the iframe

Type declaration

    • (elementSelector, options): Promise<WallpaperFrame>
    • Parameters

      • elementSelector: string

        The selector used by document.querySelector() to find the element where the iframe is rendered

      • options: WallpaperFrameOptions

        Options used to initialize the iframe

      Returns Promise<WallpaperFrame>