# OnRequestPermissionsListener

Artifact: [androidx.car.app:app](https://developer.android.com/jetpack/androidx/releases/car-app) [View Source](https://cs.android.com/search?q=file:androidx/car/app/OnRequestPermissionsListener.java+class:androidx.car.app.OnRequestPermissionsListener) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/car-app#1.1.0)

*** ** * ** ***


```
interface OnRequestPermissionsListener
```

<br />

*** ** * ** ***

A listener with the results from a permissions request.

## Summary

| ### Public functions |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/car/app/OnRequestPermissionsListener#onRequestPermissionsResult(java.util.List<java.lang.String>,java.util.List<java.lang.String>)( grantedPermissions: (https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-mutable-list/index.html)https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!>, rejectedPermissions: (https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-mutable-list/index.html)https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!> )` Provides which permissions were approved and which were rejected by the user. |

## Public functions

### onRequestPermissionsResult

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/car-app#1.1.0)

```
fun onRequestPermissionsResult(
    grantedPermissions: (Mutable)List<String!>,
    rejectedPermissions: (Mutable)List<String!>
): Unit
```

Provides which permissions were approved and which were rejected by the user.

| Parameters |
|---|---|
| `grantedPermissions: (https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-mutable-list/index.html)https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!>` | the permissions that the user granted |
| `rejectedPermissions: (https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-mutable-list/index.html)https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!>` | the permissions that the user rejected |