in my current android compose project. I am trying capture when the user clicks on
the webview to trigger a new page loaded, then i wish to show the next web page on the devices chrome browser and not in the accompanist webview
Tower Guidev2
11/16/2022, 7:12 AM
i have this code which captures the pageload for both the initial content and "next" page
Copy code
val webViewClient = remember {
object : AccompanistWebViewClient() {
override fun onPageStarted(
view: WebView?,
url: String?,
favicon: Bitmap?
) {
super.onPageStarted(view, url, favicon)
println("xxooxx Page started loading for $url")
}
}
}
how do i stop the webview loading the "second" page while i startActivity with a ViewIntent