Stay organized with collections
Save and categorize content based on your preferences.
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
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. |
getPageToken
fun getPageToken(): String
Returns the page token to read the requested page.
Return |
String |
This value cannot be null . |
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 2025-03-13 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-03-13 UTC."],[],[],null,["# ReadMedicalResourcesPageRequest\n\nAdded in [API level 36](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \nAlso in [U Extensions 16](https://developer.android.com/sdkExtensions)\n\nReadMedicalResourcesPageRequest\n===============================\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/android/health/connect/ReadMedicalResourcesPageRequest \"View this page in Java\") \n\n```\nclass ReadMedicalResourcesPageRequest : ReadMedicalResourcesRequest\n```\n\n|---|---|-------------------------------------------------------------|\n| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html) |||\n| ↳ | [android.health.connect.ReadMedicalResourcesRequest](/reference/kotlin/android/health/connect/ReadMedicalResourcesRequest) ||\n| | ↳ | [android.health.connect.ReadMedicalResourcesPageRequest](#) |\n\nA page read request with specified `pageToken` for android.health.connect.HealthConnectManager#readMedicalResources.\n\nWhen making a new initial request with new filters, use [ReadMedicalResourcesInitialRequest](/reference/kotlin/android/health/connect/ReadMedicalResourcesInitialRequest).\n\nExample usage: \n\n```kotlin\n\u003ccode\u003eReadMedicalResourcesInitialRequest initialRequest\n = new ReadMedicalResourcesInitialRequest.Builder(...).build();\n ReadMedicalResourcesResponse response = makeRequest(initialRequest);\n String pageToken = response.getNextPageToken();\n \n while (pageToken != null) {\n ReadMedicalResourcesPageRequest pageRequest = new ReadMedicalResourcesPageRequest(pageToken);\n response = makeRequest(pageRequest);\n pageToken = response.getNextPageToken();\n }\n \u003c/code\u003e\n```\n\nSummary\n-------\n\n| Nested classes ||\n|---|-----------------------------------------------------------------------------------------------------------------------------------------------------|\n| | [Builder](/reference/kotlin/android/health/connect/ReadMedicalResourcesPageRequest.Builder) Builder class for [ReadMedicalResourcesPageRequest](#). |\n\n| Public methods ||\n|------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------|\n| [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | [equals](#equals(kotlin.Any))`(`other:` `[Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)?`)` \u003cbr /\u003e |\n| [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [getPageToken](#getPageToken())`()` Returns the page token to read the requested page. |\n| [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [hashCode](#hashCode())`()` \u003cbr /\u003e |\n| [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [toString](#toString())`()` \u003cbr /\u003e |\n\n| Inherited functions ||\n|---|---|\n| From class [ReadMedicalResourcesRequest](/reference/kotlin/android/health/connect/ReadMedicalResourcesRequest) |----------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [getPageSize](/reference/kotlin/android/health/connect/ReadMedicalResourcesRequest#getPageSize())`()` Returns maximum number of `MedicalResource`s to be returned by the read operation if set, 1000 otherwise. \u003cbr /\u003e | ||\n\nPublic methods\n--------------\n\n### equals\n\nAdded in [API level 36](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nfun equals(other: Any?): Boolean\n```\n\n| Parameters ||\n|-------|---------------------------------------------|\n| `obj` | the reference object with which to compare. |\n\n| Return ||\n|------------------------------------------------------------------------------------|---------------------------------------------------------------------------|\n| [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | `true` if this object is the same as the obj argument; `false` otherwise. |\n\n### getPageToken\n\nAdded in [API level 36](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \nAlso in [U Extensions 16](https://developer.android.com/sdkExtensions) \n\n```\nfun getPageToken(): String\n```\n\nReturns the page token to read the requested page.\n\n| Return ||\n|----------------------------------------------------------------------------------|------------------------------|\n| [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | This value cannot be `null`. |\n\n### hashCode\n\nAdded in [API level 36](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nfun hashCode(): Int\n```\n\n| Return ||\n|----------------------------------------------------------------------------|------------------------------------|\n| [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | a hash code value for this object. |\n\n### toString\n\nAdded in [API level 36](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nfun toString(): String\n```\n\n| Return ||\n|----------------------------------------------------------------------------------|----------------------------------------|\n| [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | a string representation of the object. |"]]