Methods

  • Activates the window.

    Returns void

  • Navigates one page back in the history, if possible.

    Returns void

  • Returns whether the history contains any previous pages.

    Returns boolean

  • Returns whether the history contains any next pages.

    Returns boolean

  • Closes the window.

    Returns void

  • Executes the given script.

    Parameters

    • script: string

      The script to be executed.

    Returns void

  • Focus the window.

    Returns void

  • Navigates one page forward in the history, if possible.

    Returns void

  • Returns the window's height.

    Returns number

  • Returns whether this window is displayed on the main screen.

    Returns boolean

  • Returns the window's left position.

    Returns number

  • Returns the muted state.

    Returns boolean

  • Returns the pixel ratio for the window.

    Returns number

  • Returns the screen number this window is displayed at.

    Returns number

  • Returns the start page.

    Returns string

  • Returns the window's title.

    Returns string

  • Returns the window's top position.

    Returns number

  • Returns the currently set url.

    Returns string

  • Returns whether the window is visible.

    Returns boolean

  • Returns the window's width.

    Returns number

  • Returns the zoom state.

    Returns number

  • Maximizes the window.

    Returns void

  • Minimizes the window.

    Returns void

  • Navigates to a given URL.

    Parameters

    • url: string

      The URL to be navigated to.

    Returns void

  • Navigates to the home page.

    Returns void

  • Subscribes the closed event of this object, which will be fired when this has been closed,

    Parameters

    • callback: (() => void)

      The callback which will be invoked when this has been closed.

        • (): void
        • Returns void

    Returns EventSubscription

  • Reloads the current page.

    Returns void

  • Restores the window.

    Returns void

  • Sends a message to this web view window. The web page can subscribe to these messages using the message handler of the current window.

    Parameters

    • message: string

    Returns void

  • Sets the muted state.

    Parameters

    • muted: boolean

      The muted state to be set.

    Returns void

  • Sets the position and size of the window.

    Parameters

    • left: number

      The left position of the window.

    • top: number

      The top position of the window.

    • width: number

      The width of the window.

    • height: number

      The height of the window.

    Returns void

  • Sets the start page.

    Parameters

    • url: string

      The start page be set.

    Returns void

  • Sets whether the window is visible.

    Parameters

    • visible: boolean

      The visible state.

    Returns void

  • Sets the zoom state.

    Parameters

    • zoom: number

      The zoom state to be set.

    Returns void

  • Stops the loading of the current page.

    Returns void

Events

  • Registers a callback which will be triggered when the page load results in an error.

    Parameters

    • callback: ((url: string, errorCode: number, errorName: string) => void)

      The callback which will be triggered when the page load results in an error.

        • (url: string, errorCode: number, errorName: string): void
        • Parameters

          • url: string
          • errorCode: number
          • errorName: string

          Returns void

    Returns EventSubscription

  • Registers a callback which will be triggered when a page has completed loading.

    Parameters

    • callback: ((newUrl: string) => void)

      The callback which will be triggered when a page has completed loaded.

        • (newUrl: string): void
        • Parameters

          • newUrl: string

          Returns void

    Returns EventSubscription

  • Registers a callback which will be triggered when a new page is being loaded.

    Parameters

    • callback: ((newUrl: string) => void)

      The callback which will be triggered when a new page is being loaded.

        • (newUrl: string): void
        • Parameters

          • newUrl: string

          Returns void

    Returns EventSubscription

  • Registers a callback which will be triggered when the URL has changed.

    Parameters

    • callback: ((url: string) => void)

      The callback which will be triggered when the URL has changed.

        • (url: string): void
        • Parameters

          • url: string

          Returns void

    Returns EventSubscription

Generated using TypeDoc