permissions
fun permissions(activity: ComponentActivity, permissions: List<Permission>, permissionCallback: (Map<Permission, Boolean>) -> Unit)
Requests the specified permissions.
This function uses the PermissionService to request the specified permissions. The result of the permissions request is returned through the provided callback function.
Parameters
activity
The ComponentActivity instance. This is typically the current activity from which this function is called. It is used to provide context for the permissions request.
permissions
The list of permissions to request.
permission Callback
The callback function that will be called with the result of the permissions request when it is finished. The result is a map where the keys are the requested permissions and the values are Booleans indicating whether each permission was granted.