Skip to content

MTY_WebViewNavigate

chrisd1100 edited this page Mar 26, 2023 · 1 revision

Navigate the WebView to a given URL or HTML string.

void MTY_WebViewNavigate(
    MTY_App *    app,
    MTY_Window   window,
    const char * source,
    bool         url
);

Parameters

app (MTY_App *)

The MTY_App.

window (MTY_Window)

An MTY_Window.

source (const char *)

Source content to be loaded by the WebView. This argument can either be a URL or direct HTML depending on the value of url.

url (bool)

If true, source will be treated as a URL, else source will be loaded directly as HTML.

Platform support

Windows   macOS   Android   Linux   Web  

See also

Module: App

Clone this wiki locally