Tower Guidev2
11/16/2022, 7:09 AMcom.google.accompanist.web.WebView
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 webviewTower Guidev2
11/16/2022, 7:12 AMval 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
Intent(Intent.ACTION_VIEW, Uri.parse("MySecondPageUrl))
ephemient
11/16/2022, 7:59 AM