WebviewLibrary

public interface WebviewLibrary implements Library

Types

Link copied to clipboard
public interface webview_bind_fn_callback implements Callback

The callback interface for webview_bind due to JNA's function mapping rules.

Link copied to clipboard
public interface webview_dispatch_fn_callback implements Callback

Functions

Link copied to clipboard
public abstract Unit webview_bind(    Pointer webview,     String name,     WebviewJNA.WebviewLibrary.webview_bind_fn_callback callback,     Pointer arg)

Binds a native Kotlin/Java callback so that it will appear under the given name as a global JavaScript function.

Link copied to clipboard
public abstract Pointer webview_create(Integer debug, Pointer window)

Creates a new webview instance.

Link copied to clipboard
public abstract Unit webview_destroy(Pointer webview)
Link copied to clipboard
@Deprecated(message = "You normally do not need it, unless you want to tweak the native window")
public abstract Unit webview_dispatch(    Pointer webview,     WebviewJNA.WebviewLibrary.webview_dispatch_fn_callback fn,     Pointer args)

Posts a function to be executed on the main thread.

Link copied to clipboard
public abstract Unit webview_eval(Pointer webview, String js)

Evaluates arbitrary JavaScript code.

Link copied to clipboard
@Deprecated(message = "Not suggested to use")
public abstract Pointer webview_get_window(Pointer webview)

Returns a native window handle pointer.

Link copied to clipboard
public abstract Unit webview_init(Pointer webview, String js)

Injects JavaScript code at the initialization of the new page.

Link copied to clipboard
public abstract Unit webview_navigate(Pointer webview, String url)

Navigates webview to the given URL

Link copied to clipboard
public abstract Unit webview_return(    Pointer webview,     String seq,     Integer status,     String result)

Allows to return a value from the Kotlin/Java binding.

Link copied to clipboard
public abstract Unit webview_run(Pointer webview)

Runs the main loop until it's terminated.

Link copied to clipboard
public abstract Unit webview_set_html(Pointer webview, String html)

Set webview HTML directly.

Link copied to clipboard
public abstract Unit webview_set_size(    Pointer webview,     Integer width,     Integer height,     Integer hints)

Updates the size of the native window.

Link copied to clipboard
public abstract Unit webview_set_title(Pointer webview, String title)

Updates the title of the native window.

Link copied to clipboard
public abstract Unit webview_terminate(Pointer webview)

Stops the main loop.

Link copied to clipboard
public abstract Unit webview_unbind(Pointer webview, String name)

Removes a Kotlin/Java callback that was previously set by webview_bind.