-
public final class LaunchPermissionRequestKt
-
-
Method Summary
Modifier and Type Method Description final static UnitLaunchPermissionRequest(List<String> permissions, Function1<LaunchPermissionRequestScope, Unit> content)An API to ensure that the list of permissions is granted. -
-
Method Detail
-
LaunchPermissionRequest
@Composable() final static Unit LaunchPermissionRequest(List<String> permissions, Function1<LaunchPermissionRequestScope, Unit> content)
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. } }- Parameters:
permissions- the required permissions.content- the composable content used to register the
-
-
-
-