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 |
Public methods | |
---|---|
Set<DataOrigin>
|
getDataOrigins()
Returns the set of |
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
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
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
public long getPageToken ()
Returns page token to read the current page of the result. -1 if none available
Returns | |
---|---|
long |
getTimeRangeFilter
public TimeRangeFilter getTimeRangeFilter ()
Returns time range b/w which the read operation is to be performed
Returns | |
---|---|
TimeRangeFilter |
This value may be null . |
isAscending
public boolean isAscending ()
Returns ordering of results to be returned
Returns | |
---|---|
boolean |
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2024-04-04 UTC.