Webview Native
A Native binding to webview for Kotlin/Native
Functions
Link copied to clipboard
Window size can not be changed by a user
Link copied to clipboard
Width and height are maximum bounds
Link copied to clipboard
Width and height are minimum bounds
Link copied to clipboard
Width and height are default size
Link copied to clipboard
public final Unit webview_bind( CPointer<? extends CPointed> w, String name, CPointer<CFunction<Function3<CPointer<ByteVarOf<Byte>>, CPointer<ByteVarOf<Byte>>, CPointer<? extends CPointed>, Unit>>> callback, CValuesRef<?> arg)
Content copied to clipboard
Binds a native Kotlin/Java callback so that it will appear under the given name as a global JavaScript function.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
public final Unit webview_eval(CPointer<? extends CPointed> w, String js)
Content copied to clipboard
Evaluates arbitrary JavaScript code.
Link copied to clipboard
public final CPointer<? extends CPointed> webview_get_window(CPointer<? extends CPointed> w)
Content copied to clipboard
Returns a native window handle pointer.
Link copied to clipboard
public final Unit webview_init(CPointer<? extends CPointed> w, String js)
Content copied to clipboard
Injects JavaScript code at the initialization of the new page.
Link copied to clipboard
public final Unit webview_navigate(CPointer<? extends CPointed> w, String url)
Content copied to clipboard
Navigates webview to the given URL
Link copied to clipboard
Link copied to clipboard
Runs the main loop until it's terminated.
Link copied to clipboard
public final Unit webview_set_html(CPointer<? extends CPointed> w, String html)
Content copied to clipboard
Set webview HTML directly.
Link copied to clipboard
Link copied to clipboard
public final Unit webview_set_title(CPointer<? extends CPointed> w, String title)
Content copied to clipboard
Updates the title of the native window.
Link copied to clipboard
Stops the main loop.
Link copied to clipboard
public final Unit webview_unbind(CPointer<? extends CPointed> w, String name)
Content copied to clipboard
Removes a Kotlin/Java callback that was previously set by webview_bind
.