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
equals
fun equals(other: Any?): Boolean
| Parameters | |
|---|---|
obj |
the reference object with which to compare. |
| Return | |
|---|---|
Boolean |
true if this object is the same as the obj argument; false otherwise. |
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.
toString
fun toString(): String
| Return | |
|---|---|
String |
a string representation of the object. |