nrobi
12/03/2020, 12:42 PM@Composable registerForActivityResult()
from the callback of a clickable()
. Are there any options/workarounds to call it directly from the callback?Ian Lake
12/03/2020, 3:07 PMnrobi
12/03/2020, 3:13 PMonClick: () -> Unit
)Modifier.clickable { GetImage(viewModel::onIconChanged) }
where
@Composable
fun GetImage(callback: (Uri) -> Unit){}
Without the overhead of having a state flag or some similar implementationIan Lake
12/03/2020, 4:44 PM