UniWebViewPopup

Summary

A lightweight handle for controlling a popup window opened by UniWebView.

A popup window is a temporary overlay web view created when SetSupportMultipleWindows(true, ...) is enabled and target="_blank" or window.open() is triggered. It is not a full UniWebView component, but provides limited control through this handle.

Properties Summary

The identifier of the popup window.

Whether this popup window is still alive.

The owner UniWebView that created this popup window.

Events Summary

Raised when the popup starts loading a url.

Raised when the popup starts receiving web content.

Raised when the popup finishes loading a url.

Raised when an error encountered during the popup loading process.

Raised when the loading progress value changes in current popup page.

Methods Summary

Closes the popup window.

Navigates back in the popup history.

Navigates forward in the popup history.

Evaluates a JavaScript string in the popup window context.

Properties

The identifier of the popup window.

Whether this popup window is still alive.

The owner UniWebView that created this popup window.

Events

Raised when the popup starts loading a url.

Parameters
  • UniWebViewPopup popup

    The popup window handle.

  • string url

    The url which the popup is about to load.

Raised when the popup starts receiving web content.

Parameters
  • UniWebViewPopup popup

    The popup window handle.

  • string url

    The url which the popup has started receiving content for.

Raised when the popup finishes loading a url.

Parameters
  • UniWebViewPopup popup

    The popup window handle.

  • UniWebViewNativeResultPayload payload

    The payload which contains the loading result.

Raised when an error encountered during the popup loading process.

Parameters
  • UniWebViewPopup popup

    The popup window handle.

  • UniWebViewNativeResultPayload payload

    The payload which contains the loading error.

Raised when the loading progress value changes in current popup page.

Parameters
  • UniWebViewPopup popup

    The popup window handle.

  • float progress

    A value indicates the loading progress of current popup page.

Methods

Closes the popup window.

Navigates back in the popup history. If it cannot go back, the popup will be closed.

Navigates forward in the popup history.

Evaluates a JavaScript string in the popup window context.

Parameters
  • string jsString

    The JavaScript string to evaluate.

  • Action<UniWebViewNativeResultPayload> completionHandler

    Called when evaluating JavaScript finishes.