UNPKG

openfin-browser-adapter

Version:
25 lines (24 loc) 734 B
import { BaseApiClass } from './Base'; export interface WindowOptions { url?: string; name?: string; } export interface WindowBounds { width: number; height: number; top: number; left: number; } export declare class Window extends BaseApiClass { static _name: string; contentWindow: any; name: string; static staticMethods: string[]; static instanceMethods: string[]; static wrap(appUuid: string, windowName: string): any; static getCurrent(): any; constructor(data: WindowOptions, callback?: Function); close(force?: boolean, callback?: Function, errorCallback?: Function): void; getParentWindow(): this; getBounds(success: (bounds: WindowBounds) => void): void; }