RequestMultiplePermissions

Creates a ComposableNavSpec.Launcher to request multiple permissions.

Parameters

ViewModel

the type of BaseLifecycleViewModel the result should be called on.

permissions

Keys of the permission to be requested. E.g. android.Manifest.permission.ACCESS_COARSE_LOCATION.

onResult

Callback method that returns a map containing whether the permission was granted for each permission in permissions.