kernl API
    Preparing search index...

    Interface AppletAdmissions

    The firewall's say over which applets start, and with which domains.

    interface AppletAdmissions {
        admit(
            windowId: string,
            summary: AppletSummary,
            environment: ShellEnvironment,
        ): Promise<readonly string[]>;
        close(): void;
        discard(windowId: string): void;
        isCurrent(windowId: string): boolean;
        isWaiting(windowId: string): boolean;
        mounted(windowId: string): void;
        onInvalidated(listener: () => void): () => void;
    }
    Index
    • Put an applet's start to the firewall, before any of its code runs. Resolves the domains it starts with; shell is always among them when offered. Throws denied:firewall when a domain the applet requires was refused, and unavailable:firewall when the firewall could not decide.

      Parameters

      • windowId: string
      • summary: AppletSummary
      • environment: ShellEnvironment

      Returns Promise<readonly string[]>

    • Discard every window still waiting to be mounted.

      Returns void

    • Forget a window and end the session admission opened for it.

      Parameters

      • windowId: string

      Returns void

    • Whether the window's admission still stands: nothing it was admitted under was taken back.

      Parameters

      • windowId: string

      Returns boolean

    • Whether the window was planned and admitted, and is still waiting to be mounted: neither mounted nor given up on.

      Parameters

      • windowId: string

      Returns boolean

    • The window was mounted, so it no longer counts as waiting.

      Parameters

      • windowId: string

      Returns void

    • Call listener whenever an answer is taken back; returns the unsubscribe.

      Parameters

      • listener: () => void

      Returns () => void