RequestMultiplePermissions
inline fun <ViewModel : BaseLifecycleViewModel> RequestMultiplePermissions(permissions: List<String>, noinline onResult: ViewModel.(Map<String, Boolean>) -> Unit): ComposableNavSpec.Launcher<ViewModel, Array<String>, Map<String, Boolean>>
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.