ReadRecordsRequestUsingFilters


public final class ReadRecordsRequestUsingFilters
extends ReadRecordsRequest<T extends Record>

java.lang.Object
   ↳ android.health.connect.ReadRecordsRequest<T extends android.health.connect.datatypes.Record>
     ↳ android.health.connect.ReadRecordsRequestUsingFilters<T extends android.health.connect.datatypes.Record>


Class to represent a request based on time range and data origin filters for HealthConnectManager.readRecords(android.health.connect.ReadRecordsRequest, java.util.concurrent.Executor, android.os.OutcomeReceiver)

Summary

Nested classes

class ReadRecordsRequestUsingFilters.Builder<T extends Record>

Builder class for ReadRecordsRequestUsingFilters 

Public methods

Set<DataOrigin> getDataOrigins()

Returns the set of data origins to be read, or empty list for no filter

int getPageSize()

Returns maximum number of records to be returned by the read operation

long getPageToken()

Returns page token to read the current page of the result.

TimeRangeFilter getTimeRangeFilter()

Returns time range b/w which the read operation is to be performed

boolean isAscending()

Returns ordering of results to be returned

Inherited methods

Public methods

getDataOrigins

Added in API level 34
public Set<DataOrigin> getDataOrigins ()

Returns the set of data origins to be read, or empty list for no filter

Returns
Set<DataOrigin> This value cannot be null.

getPageSize

Added in API level 34
public int getPageSize ()

Returns maximum number of records to be returned by the read operation

Returns
int Value is between 1 and 5000 inclusive

getPageToken

Added in API level 34
public long getPageToken ()

Returns page token to read the current page of the result. -1 if none available

Returns
long

getTimeRangeFilter

Added in API level 34
public TimeRangeFilter getTimeRangeFilter ()

Returns time range b/w which the read operation is to be performed

Returns
TimeRangeFilter This value may be null.

isAscending

Added in API level 34
public boolean isAscending ()

Returns ordering of results to be returned

Returns
boolean