Lucien Guimaraes
05/19/2021, 1:18 PMJason Ankers
05/19/2021, 1:28 PMLucien Guimaraes
05/19/2021, 1:29 PMIan Lake
05/19/2021, 1:53 PMrememberLauncherForActivityResult
API in the docs: https://developer.android.com/reference/kotlin/androidx/activity/compose/package-summary#rememberlauncherforactivityresultIan Lake
05/19/2021, 1:54 PMIan Lake
05/19/2021, 1:55 PMrememberLauncherForActivityResult()
with the RequestPermission
contract?Adam Powell
05/19/2021, 2:07 PMLucien Guimaraes
05/19/2021, 2:10 PMWe have an example of theAh thanks 👍 I'm sorry I didn't saw itAPI in the docs: https://developer.android.com/reference/kotlin/androidx/activity/compose/package-summary#rememberlauncherforactivityresultrememberLauncherForActivityResult
Lucien Guimaraes
05/19/2021, 2:11 PMSo I think what you're asking for is a sample that specifically showsThat would be a nice to have indeed. For instance, inside the Crane sample we could have the permission to request user location in the mapView.with therememberLauncherForActivityResult()
contract?RequestPermission
Lucien Guimaraes
05/19/2021, 2:11 PMWe could offer some other quality of life wrappers around this + reflecting the current permission state the way the gist does but that would be post-1.0Ok thanks for your replies 👍