admin管理员组

文章数量:1335596

I'm working with Kotlin and Jetpack Compose. My Code

AndroidView(factory = {
            WebView(it).apply {
                webViewClient = WebViewClient()
                Log.d("myTag", mUrl); //is called once    
            }
        }, update = {
            it.loadUrl(mUrl)
            Log.d("myTag", mUrl); //is called once 
        })

How can I call the Log.d or any other function on urlredirect? Now it's called only once, so I can browse through the web, but I can't mutate any states or whatever.

本文标签: kotlinCall function inside Android WebViewClient Jetpack composeStack Overflow