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.
fn x(&self) -> AnimatedFloat
fn x(&self) -> AnimatedFloat
Viewport X position, in pixels.
fn y(&self) -> AnimatedFloat
fn y(&self) -> AnimatedFloat
Viewport Y position, in pixels.
fn width(&self) -> AnimatedFloat
fn width(&self) -> AnimatedFloat
Viewport width, in pixels.
fn height(&self) -> AnimatedFloat
fn height(&self) -> AnimatedFloat
Viewport height, in pixels.