logo
pub trait WebView: Disposable {
    fn url(&self) -> Value<String>;
    fn error(&self) -> Signal1<String>;
    fn x(&self) -> AnimatedFloat;
    fn y(&self) -> AnimatedFloat;
    fn width(&self) -> AnimatedFloat;
    fn height(&self) -> AnimatedFloat;
}
Expand description

Displays a web page over the stage. In the HTML target, this is implemented with an iframe. In AIR, it uses StageWebView. On Android, make sure your app manifest contains the INTERNET permission.

Required Methods

The URL currently being displayed. Can be set to load a different URL. In AIR, this value will change automatically if the user navigates to a different page.

An error message emitted if the page could not be loaded.

Viewport X position, in pixels.

Viewport Y position, in pixels.

Viewport width, in pixels.

Viewport height, in pixels.

Implementors