# 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)

*** ** * ** ***


```
public class TestCarContext.PermissionRequestInfo
```

<br />

*** ** * ** ***

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

## Summary

| ### Public methods |
|---|---|
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/car/app/OnRequestPermissionsListener` | `https://developer.android.com/reference/androidx/car/app/testing/TestCarContext.PermissionRequestInfo#getListener()()` Returns the listener that was provided in the permission request. |
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/java/util/List.html<https://developer.android.com/reference/java/lang/String.html>` | `https://developer.android.com/reference/androidx/car/app/testing/TestCarContext.PermissionRequestInfo#getPermissionsRequested()()` Returns the permissions that were requested. |

## Public methods

### getListener

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

```
public @NonNull OnRequestPermissionsListener getListener()
```

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)

```
public @NonNull List<String> getPermissionsRequested()
```

Returns the permissions that were requested.