Stay organized with collections
Save and categorize content based on your preferences.
ReadMedicalResourcesInitialRequest
class ReadMedicalResourcesInitialRequest : ReadMedicalResourcesRequest
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
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. |
getMedicalResourceType
fun getMedicalResourceType(): Int
Returns the medical resource type.
Return |
Int |
Value is android.health.connect.datatypes.MedicalResource#MEDICAL_RESOURCE_TYPE_ALLERGIES_INTOLERANCES , android.health.connect.datatypes.MedicalResource#MEDICAL_RESOURCE_TYPE_CONDITIONS , android.health.connect.datatypes.MedicalResource#MEDICAL_RESOURCE_TYPE_LABORATORY_RESULTS , android.health.connect.datatypes.MedicalResource#MEDICAL_RESOURCE_TYPE_MEDICATIONS , android.health.connect.datatypes.MedicalResource#MEDICAL_RESOURCE_TYPE_PERSONAL_DETAILS , android.health.connect.datatypes.MedicalResource#MEDICAL_RESOURCE_TYPE_PRACTITIONER_DETAILS , android.health.connect.datatypes.MedicalResource#MEDICAL_RESOURCE_TYPE_PREGNANCY , android.health.connect.datatypes.MedicalResource#MEDICAL_RESOURCE_TYPE_PROCEDURES , android.health.connect.datatypes.MedicalResource#MEDICAL_RESOURCE_TYPE_SOCIAL_HISTORY , android.health.connect.datatypes.MedicalResource#MEDICAL_RESOURCE_TYPE_VACCINES , android.health.connect.datatypes.MedicalResource#MEDICAL_RESOURCE_TYPE_VISITS , or android.health.connect.datatypes.MedicalResource#MEDICAL_RESOURCE_TYPE_VITAL_SIGNS |
hashCode
fun hashCode(): Int
Return |
Int |
a hash code value for this object. |
toString
fun toString(): String
Return |
String |
a string representation of the object. |
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-12-18 UTC.