ReadMedicalResourcesPageRequest


@ExperimentalPersonalHealthRecordApi
class ReadMedicalResourcesPageRequest : ReadMedicalResourcesRequest


A class to make subsequent requests when reading MedicalResources with HealthConnectClient.readMedicalResources.

This class should only be used after a successful initial request has been made with ReadMedicalResourcesInitialRequest.

This feature is dependent on the version of HealthConnect installed on the device. To check if it's available call HealthConnectFeatures.getFeatureStatus and pass FEATURE_PERSONAL_HEALTH_RECORD as an argument. An UnsupportedOperationException would be thrown if the feature is not available.

Summary

Public constructors

ReadMedicalResourcesPageRequest(pageToken: String, pageSize: Int)

Public functions

open operator Boolean
equals(other: Any?)
open Int
open String

Public properties

String

The token to read the next page, this should be obtained from ReadMedicalResourcesResponse.nextPageToken.

Inherited properties

From androidx.health.connect.client.request.ReadMedicalResourcesRequest
Int

The maximum number of MedicalResources to be read.

Public constructors

ReadMedicalResourcesPageRequest

Added in 1.1.0-beta02
ReadMedicalResourcesPageRequest(
    pageToken: String,
    pageSize: Int = DEFAULT_PAGE_SIZE
)

Public functions

equals

open operator fun equals(other: Any?): Boolean

hashCode

open fun hashCode(): Int

toString

open fun toString(): String

Public properties

pageToken

Added in 1.1.0-beta02
val pageTokenString

The token to read the next page, this should be obtained from ReadMedicalResourcesResponse.nextPageToken.