request Permissions
fun requestPermissions(activity: ComponentActivity, permissions: List<Permission>, permissionCallback: (Map<Permission, Boolean>) -> Unit)
This function is used to request permissions. It starts a new PermissionActivity and passes the requested permissions as an extra in the intent.
Parameters
activity
The activity from which the permissions request is made.
permissions
The list of permissions to request.
permission Callback
The callback function to invoke when the permissions request is completed.