https://kotlinlang.org logo
#compose
Title
# compose
b

Brian Donovan

01/21/2022, 2:41 PM
Hey All, I’m not sure if this is a compose issue but I am trying to click on the blue html text to open another link inside of a web view. The post body information is in HMTL format. The information is coming from a API call. How can I do this using webView?
I was able to grab the URL and now am having this error. WebViewScreen is inside of another composable though.
f

fmasa

01/21/2022, 3:10 PM
You can pass some event handler
Copy code
onUrlClick: (String) -> Unit
and then call it in `handleUrlClicks`:
Copy code
it.handleUrlClicks { url ->
    onUrlClick(url)    
}
In the handler you can navigate to
WebViewScreen