ReadMedicalResourcesPageRequest
class ReadMedicalResourcesPageRequest : ReadMedicalResourcesRequest
| kotlin.Any | ||
| ↳ | android.health.connect.ReadMedicalResourcesRequest | |
| ↳ | android.health.connect.ReadMedicalResourcesPageRequest | |
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   | 
        |
| Public methods | |
|---|---|
| Boolean | |
| String | 
            
             Returns the page token to read the requested page.  | 
        
| Int | 
            hashCode() | 
        
| String | 
            toString() | 
        
| Inherited functions | |
|---|---|
Public methods
equals
Added in API level 36
      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. | 
          
toString
Added in API level 36
      fun toString(): String
| Return | |
|---|---|
String | 
            a string representation of the object. |