# TestCarContext.PermissionRequestInfo

# TestCarContext.PermissionRequestInfo

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

*** ** * ** ***

Kotlin\|[Java](https://developer.android.com/reference/androidx/car/app/testing/TestCarContext.PermissionRequestInfo "View this page in Java")

<br />

```
class TestCarContext.PermissionRequestInfo
```

<br />

*** ** * ** ***

A representation of a permission request including the permissions that were requested as well as the callback provided.

## Summary

|                                                                                                                                    ### Public functions                                                                                                                                     |
|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [OnRequestPermissionsListener](https://developer.android.com/reference/kotlin/androidx/car/app/OnRequestPermissionsListener)                                                                                                                                                                | [getListener](https://developer.android.com/reference/kotlin/androidx/car/app/testing/TestCarContext.PermissionRequestInfo#getListener())`()` Returns the listener that was provided in the permission request.    |
| `(`[Mutable](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-mutable-list/index.html)`)`[List](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html)`<`[String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)`!>` | [getPermissionsRequested](https://developer.android.com/reference/kotlin/androidx/car/app/testing/TestCarContext.PermissionRequestInfo#getPermissionsRequested())`()` Returns the permissions that were requested. |

## Public functions

### getListener

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

```
fun getListener(): OnRequestPermissionsListener
```

Returns the listener that was provided in the permission request.  

### getPermissionsRequested

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

```
fun getPermissionsRequested(): (Mutable)List<String!>
```

Returns the permissions that were requested.