LaunchPermissionRequest
fun LaunchPermissionRequest(permissions: List<String>, content: @Composable LaunchPermissionRequestScope.() -> Unit)
An API to ensure that the list of permissions is granted.
Usage
LaunchPermissionRequest(listOf(android.Manifest.RECORD_AUDIO, android.Manifest.CAMERA) {
Granted {
// All permissions granted
}
SomeGranted { granted, notGranted, showRationale ->
// Some of the permissions were granted, you can check which ones.
}
NotGranted {
// None of the permissions were granted.
}
}
Content copied to clipboard
Parameters
permissions
the required permissions.
content
the composable content used to register the