Stay organized with collections
Save and categorize content based on your preferences.
ReadMedicalResourcesRequest
abstract class ReadMedicalResourcesRequest
A base class to represent a read request for android.health.connect.HealthConnectManager#readMedicalResources.
Summary
Public methods |
open Int |
Returns maximum number of MedicalResource s to be returned by the read operation if set, 1000 otherwise.
|
Public methods
getPageSize
open fun getPageSize(): Int
Returns maximum number of MedicalResource
s to be returned by the read operation if set, 1000 otherwise.
Return |
Int |
Value is between android.health.connect.Constants#MINIMUM_PAGE_SIZE and android.health.connect.Constants#MAXIMUM_PAGE_SIZE inclusive |
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-08-20 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-08-20 UTC."],[],[],null,["# ReadMedicalResourcesRequest\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\nReadMedicalResourcesRequest\n===========================\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/android/health/connect/ReadMedicalResourcesRequest \"View this page in Java\") \n\n```\nabstract class ReadMedicalResourcesRequest\n```\n\n|---|---------------------------------------------------------|\n| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html) ||\n| ↳ | [android.health.connect.ReadMedicalResourcesRequest](#) |\n\n|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| Known Direct Subclasses [ReadMedicalResourcesInitialRequest](/reference/kotlin/android/health/connect/ReadMedicalResourcesInitialRequest), [ReadMedicalResourcesPageRequest](/reference/kotlin/android/health/connect/ReadMedicalResourcesPageRequest) |-------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------| | [ReadMedicalResourcesInitialRequest](/reference/kotlin/android/health/connect/ReadMedicalResourcesInitialRequest) | An initial read request with specified filters for android. | | [ReadMedicalResourcesPageRequest](/reference/kotlin/android/health/connect/ReadMedicalResourcesPageRequest) | A page read request with specified `pageToken` for android. | |\n\nA base class to represent a read request for android.health.connect.HealthConnectManager#readMedicalResources.\n\nSummary\n-------\n\n| Public methods ||\n|---------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------|\n| open [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [getPageSize](#getPageSize())`()` Returns maximum number of `MedicalResource`s to be returned by the read operation if set, 1000 otherwise. |\n\nPublic methods\n--------------\n\n### getPageSize\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```\nopen fun getPageSize(): Int\n```\n\nReturns maximum number of `MedicalResource`s to be returned by the read operation if set, 1000 otherwise.\n\n| Return ||\n|----------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------|\n| [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | Value is between android.health.connect.Constants#MINIMUM_PAGE_SIZE and android.health.connect.Constants#MAXIMUM_PAGE_SIZE inclusive |"]]