# ReadRecordsResponse

Artifact: [androidx.health.connect:connect-client](https://developer.android.com/jetpack/androidx/releases/health-connect) [View Source](https://cs.android.com/search?q=file:androidx/health/connect/client/response/ReadRecordsResponse.kt+class:androidx.health.connect.client.response.ReadRecordsResponse) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/health-connect#1.1.0)

*** ** * ** ***


```
public final class ReadRecordsResponse<T extends Record>
```

<br />

*** ** * ** ***

Response of reading a collection of records.

| Parameters |
|---|---|
| `<T extends https://developer.android.com/reference/androidx/health/connect/client/records/Record>` | the record type |

| See also |
|---|---|
| `https://developer.android.com/reference/androidx/health/connect/client/HealthConnectClient#readRecords(androidx.health.connect.client.request.ReadRecordsRequest)` |   |

## Summary

| ### Public methods |
|---|---|
| `final https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/health/connect/client/response/ReadRecordsResponse#getPageToken()()` an optional page token to use for `https://developer.android.com/reference/androidx/health/connect/client/request/ReadRecordsRequest#pageToken()` in the next request if more records can be fetched; contains value `null` if no more pages. |
| `final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/util/List.html<@https://developer.android.com/reference/androidx/annotation/NonNull T>` | `https://developer.android.com/reference/androidx/health/connect/client/response/ReadRecordsResponse#getRecords()()` a collection of records |

## Public methods

### getPageToken

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

```
public final String getPageToken()
```

an optional page token to use for `https://developer.android.com/reference/androidx/health/connect/client/request/ReadRecordsRequest#pageToken()` in the next request if more records can be fetched; contains value `null` if no more pages.

### getRecords

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

```
public final @NonNull List<@NonNull T> getRecords()
```

a collection of records