google / accompanist

A collection of extension libraries for Jetpack Compose
https://google.github.io/accompanist
Apache License 2.0
7.34k stars 593 forks source link

Webview client not able to capture onpagefinished callback #1689

Closed RizwanAtNvest closed 12 months ago

RizwanAtNvest commented 1 year ago
       val state = rememberWebViewState("https://example.com/Login/LoginEXA")
                    WebView(
                        state = state,
                        onCreated = {
                            it.webViewClient = WebViewClients(object : WebViewClients.PageLoaderStatus {
                                override fun onPageLoaded() {
                                    loadingState = false

                                }
                            })
                            it.settings.javaScriptEnabled = true
                            it.settings.domStorageEnabled = true
                            it.clearCache(true)

                        })
bentrengrove commented 12 months ago

You need to use the Accompanist web view clients. Have a look at the sample app in accompanist for an example