kaios-types
    Preparing search index...

    Interface BrowserElementPrivileged

    Privileged methods for browser elements.

    interface BrowserElementPrivileged {
        clearMatch(): void;
        download(url: string, options?: BrowserElementDownloadOptions): DOMRequest;
        executeScript(
            script: string,
            options?: BrowserElementExecuteScriptOptions,
        ): DOMRequest;
        findAll(
            searchString: string,
            caseSensitivity: BrowserFindCaseSensitivity,
        ): void;
        findNext(direction: BrowserFindDirection): void;
        getCanGoBack(): DOMRequest;
        getCanGoForward(): DOMRequest;
        getContentDimensions(): DOMRequest;
        getScreenshot(width: number, height: number, mimeType?: string): DOMRequest;
        getStructuredData(): DOMRequest;
        getWebManifest(): DOMRequest;
        goBack(): void;
        goForward(): void;
        purgeHistory(): DOMRequest;
        reload(hardReload?: boolean): void;
        sendMouseEvent(
            type: string,
            x: number,
            y: number,
            button: number,
            clickCount: number,
            modifiers: number,
        ): void;
        sendTouchEvent(
            type: string,
            identifiers: number[],
            x: number[],
            y: number[],
            rx: number[],
            ry: number[],
            rotationAngles: number[],
            forces: number[],
            count: number,
            modifiers: number,
        ): void;
        setInputMethodActive(isActive: boolean): DOMRequest;
        setNFCFocus(isFocus: boolean): void;
        stop(): void;
        zoom(zoom: number): void;
    }

    Hierarchy (View Summary)

    Index

    Methods

    • Captures a screenshot of the browser element content.

      Parameters

      • width: number

        The width of the screenshot.

      • height: number

        The height of the screenshot.

      • OptionalmimeType: string

        The MIME type of the screenshot (optional).

      Returns DOMRequest

      A DOMRequest resolving to a Blob.

      NS_ERROR_NOT_AVAILABLE.

      browser

    • Navigates forward in the session history.

      Returns void

      NS_ERROR_NOT_AVAILABLE.

      browser

    • Reloads the current page.

      Parameters

      • OptionalhardReload: boolean

        Whether to perform a hard reload (bypassing cache).

      Returns void

      NS_ERROR_NOT_AVAILABLE.

      browser

    • Sends a mouse event to the browser element content.

      Parameters

      • type: string

        The type of mouse event (e.g., "mousedown", "mouseup").

      • x: number

        The x coordinate.

      • y: number

        The y coordinate.

      • button: number

        The button pressed.

      • clickCount: number

        The number of clicks.

      • modifiers: number

        Modifier keys pressed.

      Returns void

      NS_ERROR_NOT_AVAILABLE.

      browser

    • Sends a touch event to the browser element content.

      Parameters

      • type: string

        The type of touch event.

      • identifiers: number[]

        Array of touch identifiers.

      • x: number[]

        Array of x coordinates.

      • y: number[]

        Array of y coordinates.

      • rx: number[]

        Array of radius-x values.

      • ry: number[]

        Array of radius-y values.

      • rotationAngles: number[]

        Array of rotation angles.

      • forces: number[]

        Array of force values.

      • count: number

        Number of touches.

      • modifiers: number

        Modifier keys.

      Returns void

      NS_ERROR_NOT_AVAILABLE. Requires "TouchEvent::PrefEnabled" to be true.

      browser

    • Sets whether the input method is active.

      Parameters

      • isActive: boolean

        Whether the input method should be active.

      Returns DOMRequest

      A DOMRequest indicating success or failure.

      NS_ERROR_NOT_AVAILABLE.

      browser, input-manage

    • Sets whether NFC events should be focused on this element.

      Parameters

      • isFocus: boolean

        Whether to focus NFC events.

      Returns void

      NS_ERROR_NOT_AVAILABLE.

      browser, nfc-manager

    • Sets the zoom factor.

      Parameters

      • zoom: number

        The zoom factor.

      Returns void

      NS_ERROR_NOT_AVAILABLE.

      browser