ReadRecordsResponse


public final class ReadRecordsResponse<T extends Record>


Response of reading a collection of records.

Parameters
<T extends Record>

the record type

See also
readRecords

Summary

Public methods

final String

an optional page token to use for 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 @NonNull List<@NonNull T>

a collection of records

Public methods

getPageToken

Added in 1.1.0-alpha10
public final String getPageToken()

an optional page token to use for 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-alpha10
public final @NonNull List<@NonNull T> getRecords()

a collection of records