webview_navigate

Function webview_navigate 

Source
pub unsafe extern "C" fn webview_navigate(
    w: webview_t,
    url: *const c_char,
) -> webview_error_t
Expand description

Navigates webview to the given URL. URL may be a properly encoded data URI.

Example: @code{.c} webview_navigate(w, “https://github.com/webview/webview”); webview_navigate(w, “data:text/html,%3Ch1%3EHello%3C%2Fh1%3E”); webview_navigate(w, “data:text/html;base64,PGgxPkhlbGxvPC9oMT4=”); @endcode

@param w The webview instance. @param url URL.