ReadMedicalResourcesPageRequest


class ReadMedicalResourcesPageRequest : ReadMedicalResourcesRequest

A page read request with specified pageToken for android.health.connect.HealthConnectManager#readMedicalResources.

When making a new initial request with new filters, use ReadMedicalResourcesInitialRequest.

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

Public methods
Boolean
equals(other: Any?)

String

Returns the page token to read the requested page.

Int

String

Inherited functions
Int getPageSize()

Returns maximum number of MedicalResources to be returned by the read operation if set, 1000 otherwise.

Public methods

equals

fun equals(other: Any?): Boolean

getPageToken

fun getPageToken(): String

Returns the page token to read the requested page.

Return
String This value cannot be null.

hashCode

fun hashCode(): Int

toString

fun toString(): String