https://kotlinlang.org logo
Title
u

user

06/30/2022, 5:51 AM
How to call a composable function in onClick event This is a composable function and I want to do that when I click on cardview then article will open in android view but didn't understand how to achieve this. I also try with lamda but not got success. I Want to call ShowOnWebView composable function when NewsCardView(Card View) function clicked but compiler shows an error "@Composable invocations can only happen from the context of a @Composable function" how to call my function when cardview will clicked Kindly help...