Package 

Class LaunchPermissionRequestKt

    • Method Summary

      Modifier and Type Method Description
      final static Unit LaunchPermissionRequest(List<String> permissions, Function1<LaunchPermissionRequestScope, Unit> content) An API to ensure that the list of permissions is granted.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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