ReadRecordsRequest


public final class ReadRecordsRequest<T extends Record>


Request object to read Records in Android Health Platform determined by time range and other filters.

Returned collection will contain a androidx.health.connect.client.response.ReadRecordsResponse.pageToken if number of records exceeds pageSize. Use this if you expect an unbound number of records within specified time ranges. Stops at any time once desired amount of records are processed.

Parameters
<T extends Record>

type of Record, such as Steps.

Summary

Public constructors

<T extends Record> ReadRecordsRequest(
    @NonNull KClass<@NonNull T> recordType,
    @NonNull TimeRangeFilter timeRangeFilter,
    @NonNull Set<@NonNull DataOrigin> dataOriginFilter,
    boolean ascendingOrder,
    int pageSize,
    String pageToken
)

Public methods

boolean
equals(Object other)
int

Public constructors

ReadRecordsRequest

public <T extends Record> ReadRecordsRequest(
    @NonNull KClass<@NonNull T> recordType,
    @NonNull TimeRangeFilter timeRangeFilter,
    @NonNull Set<@NonNull DataOrigin> dataOriginFilter,
    boolean ascendingOrder,
    int pageSize,
    String pageToken
)

Public methods

equals

public boolean equals(Object other)

hashCode

public int hashCode()