logo
pub trait WebSystem {
    fn is_supported(&self) -> bool;
    fn create_view(
        &self,
        x: f32,
        y: f32,
        width: f32,
        height: f32
    ) -> Box<dyn WebView>; fn open_browser(&self, url: String); }
Expand description

Functions related to the environment’s web browser.

Required Methods

True if the environment supports WebViews. Note that this will always be false

Creates a blank WebView with the given viewport bounds, in pixels. Fails with an assertion if this environment doesn’t support WebViews.

Open a new browser window or tab to the given URL. This operation is always supported. URI schemes such as mailto: are also available. On mobile, sms: and tel: are supported. On Android, market: is supported.

Implementors