ReadMedicalResourcesInitialRequest
class ReadMedicalResourcesInitialRequest : ReadMedicalResourcesRequest
kotlin.Any | ||
↳ | android.health.connect.ReadMedicalResourcesRequest | |
↳ | android.health.connect.ReadMedicalResourcesInitialRequest |
An initial read request with specified filters for android.health.connect.HealthConnectManager#readMedicalResources.
On receiving the response, if ReadMedicalResourcesResponse.getNextPageToken()
is not null
, then use the next token with ReadMedicalResourcesPageRequest
to read the next page.
Example usage:
<code>ReadMedicalResourcesInitialRequest initialRequest = new ReadMedicalResourcesInitialRequest.Builder(...).build(); ReadMedicalResourcesResponse response = makeRequest(initialRequest); String pageToken = response.getNextPageToken(); while (pageToken != null) { ReadMedicalResourcesPageRequest pageRequest = new ReadMedicalResourcesPageRequest(pageToken); response = makeRequest(pageRequest); pageToken = response.getNextPageToken(); } </code>
Summary
Nested classes | |
---|---|
Builder class for |
Public methods | |
---|---|
Boolean | |
MutableSet<String!> |
Returns the set of IDs of the |
Int |
Returns the medical resource type. |
Int |
hashCode() |
String |
toString() |
Inherited functions | |
---|---|
Public methods
getDataSourceIds
fun getDataSourceIds(): MutableSet<String!>
Returns the set of IDs of the MedicalDataSource
filter to read from, or an empty set for no filter.
Return | |
---|---|
MutableSet<String!> |
This value cannot be null . |
getMedicalResourceType
fun getMedicalResourceType(): Int
Returns the medical resource type.
hashCode
fun hashCode(): Int
toString
fun toString(): String