choosePermission

suspend fun choosePermission(choice: PermissionChoice, accuracy: LocationAccuracy? = null, timeout: Duration? = null)(source)

Taps the permission dialog's button for choice (NOT_FOUND before any input when the dialog does not offer it). With accuracy, the location dialog's Precise / Approximate radio is selected first; it must be offered too (PermissionPrompt.accuracies, Android 12+ when the app asks for fine location), or nothing is tapped. Only the taps are reported: assert the outcome, e.g. the dialog gone and the app's state.