Datalayer Desktop - v0.0.2
    Preparing search index...

    Interface ElectronAPI

    Electron API interface for system and application information.

    interface ElectronAPI {
        closeAboutWindow: () => void;
        getEnv: () => Promise<
            { DATALAYER_RUN_URL: string; DATALAYER_TOKEN: string },
        >;
        getVersion: () => Promise<
            { app: string; chrome: string; electron: string; node: string },
        >;
        onAuthStateChanged: (
            callback: (
                authState: {
                    isAuthenticated: boolean;
                    runUrl: string;
                    token: null | string;
                    user: null | UserJSON;
                },
            ) => void,
        ) => void;
        onMenuAction: (callback: (action: string) => void) => void;
        openExternal: (url: string) => void;
        platform: Platform;
        removeAuthStateListener: () => void;
        removeMenuActionListener: () => void;
    }
    Index

    Properties

    closeAboutWindow: () => void
    getEnv: () => Promise<{ DATALAYER_RUN_URL: string; DATALAYER_TOKEN: string }>
    getVersion: () => Promise<
        { app: string; chrome: string; electron: string; node: string },
    >
    onAuthStateChanged: (
        callback: (
            authState: {
                isAuthenticated: boolean;
                runUrl: string;
                token: null | string;
                user: null | UserJSON;
            },
        ) => void,
    ) => void
    onMenuAction: (callback: (action: string) => void) => void
    openExternal: (url: string) => void
    platform: Platform
    removeAuthStateListener: () => void
    removeMenuActionListener: () => void