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 ReadMedicalResourcesInitialRequest.

Public methods
Boolean
equals(other: Any?)

MutableSet<String!>

Returns the set of IDs of the MedicalDataSource filter to read from, or an empty set for no filter.

Int

Returns the medical resource type.

Int

String

Inherited functions

Public methods

equals

fun equals(other: Any?): Boolean

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.

hashCode

fun hashCode(): Int

toString

fun toString(): String