Interface TheiaCoreAPI

interface TheiaCoreAPI {
    WindowMetadata: {
        webcontentId: string;
    };
    attachSecurityToken: ((endpoint) => Promise<void>);
    getSecurityToken: (() => string);
    useNativeElements: boolean;
    applicationStateChanged(state): void;
    close(): void;
    closePopup(handle): void;
    focusWindow(name?): void;
    getTitleBarStyleAtStartup(): Promise<string>;
    getZoomLevel(): Promise<number>;
    isFullScreen(): boolean;
    isFullScreenable(): boolean;
    isMaximized(): boolean;
    maximize(): void;
    minimize(): void;
    onAboutToClose(handler): Disposable;
    onData(handler): Disposable;
    onKeyboardLayoutChanged(handler): Disposable;
    onWindowEvent(event, handler): Disposable;
    openWithSystemApp(location): void;
    popup(menu, x, y, onClosed, windowName?): Promise<number>;
    readClipboard(): string;
    requestReload(newUrl?): void;
    restart(): void;
    sendData(data): void;
    setBackgroundColor(backgroundColor): void;
    setCloseRequestHandler(handler): void;
    setMenu(menu): void;
    setMenuBarVisible(visible, windowName?): void;
    setOpenUrlHandler(handler): void;
    setSecondaryWindowCloseRequestHandler(windowName, handler): void;
    setTitleBarStyle(style): void;
    setZoomLevel(desired): void;
    showItemInFolder(fsPath): void;
    toggleDevTools(): void;
    toggleFullScreen(): void;
    unMaximize(): void;
    writeClipboard(text): void;
}

Properties

WindowMetadata: {
    webcontentId: string;
}

Type declaration

  • webcontentId: string
attachSecurityToken: ((endpoint) => Promise<void>)

Type declaration

    • (endpoint): Promise<void>
    • Parameters

      • endpoint: string

      Returns Promise<void>

getSecurityToken: (() => string)

Type declaration

    • (): string
    • Returns string

useNativeElements: boolean

Methods