WebViewDriverManager

A singleton object that can be used to access URLs and manipulate webpage/api responses through WebView instead of using OkHttp3.

It handles if a WebViewDriver will be headless or not.

Remember only one instance of WebViewDriver can be registered at a time.

Properties

Link copied to clipboard
val webView: StateFlow<WebViewDriver?>

The current WebViewDriver instance.

Functions

Link copied to clipboard
fun destroy()

Destroys current WebViewDriver and sets it to null.

Link copied to clipboard
fun register(webView: WebViewDriver)

Registers a new WebViewDriver and sets it to the current WebViewDriver.