onStop

abstract suspend fun onStop(url: NetworkRequest, data: String?): T?

Called when the webview stops loading a URL with the stopUrlRegex and the javascript is evaluated.

You need to convert the data returned from the javascript to T.

Return

The data to be passed to the next step

Parameters

url

The URL that the webview stopped at

data

The data returned from the javascriptToEvaluate