ReadRecordsRequest


class ReadRecordsRequest<T : 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 : Record>

type of Record, such as Steps.

Summary

Public constructors

<T : Record> ReadRecordsRequest(
    recordType: KClass<T>,
    timeRangeFilter: TimeRangeFilter,
    dataOriginFilter: Set<DataOrigin>,
    ascendingOrder: Boolean,
    pageSize: Int,
    pageToken: String?
)

Public functions

open operator Boolean
equals(other: Any?)
open Int

Public constructors

ReadRecordsRequest

<T : Record> ReadRecordsRequest(
    recordType: KClass<T>,
    timeRangeFilter: TimeRangeFilter,
    dataOriginFilter: Set<DataOrigin> = emptySet(),
    ascendingOrder: Boolean = true,
    pageSize: Int = 1000,
    pageToken: String? = null
)

Public functions

equals

open operator fun equals(other: Any?): Boolean

hashCode

open fun hashCode(): Int