ReadMedicalResourcesResponse
class ReadMedicalResourcesResponse : Parcelable
kotlin.Any | |
↳ | android.health.connect.ReadMedicalResourcesResponse |
A read response for android.health.connect.HealthConnectManager#readMedicalResources.
Summary
Inherited constants | |
---|---|
Public constructors | |
---|---|
ReadMedicalResourcesResponse(medicalResources: MutableList<MedicalResource!>, nextPageToken: String?, remainingCount: Int) Constructs a new |
Public methods | |
---|---|
Int | |
Boolean | |
MutableList<MedicalResource!> |
Returns list of |
String? |
Returns a page token to read the next page of the result. |
Int |
Returns the count of medical resources still remaining which were not returned due to pagination. |
Int |
hashCode() |
String |
toString() |
Unit |
writeToParcel(dest: Parcel, flags: Int) Flatten this object in to a Parcel. |
Properties | |
---|---|
static Parcelable.Creator<ReadMedicalResourcesResponse!> |
Public constructors
ReadMedicalResourcesResponse
ReadMedicalResourcesResponse(
medicalResources: MutableList<MedicalResource!>,
nextPageToken: String?,
remainingCount: Int)
Constructs a new ReadMedicalResourcesResponse
instance.
Parameters | |
---|---|
medicalResources |
MutableList<MedicalResource!>: List of MedicalResource s. This value cannot be null . |
nextPageToken |
String?: The token value of the read result which can be used as input token for next read request. null if there are no more pages available. |
remainingCount |
Int: the total number of medical resources remaining, excluding the ones in this response |
Public methods
describeContents
fun describeContents(): Int
getMedicalResources
fun getMedicalResources(): MutableList<MedicalResource!>
Returns list of MedicalResource
s.
Return | |
---|---|
MutableList<MedicalResource!> |
This value cannot be null . |
getNextPageToken
fun getNextPageToken(): String?
Returns a page token to read the next page of the result. null
if there are no more pages available.
getRemainingCount
fun getRemainingCount(): Int
Returns the count of medical resources still remaining which were not returned due to pagination.
For a response with a null next page token, this will be 0. This result is accurate at the time the request was made, and with the permissions when the request was made. However, the actual results may change if permissions change or resources are inserted or deleted.
hashCode
fun hashCode(): Int
toString
fun toString(): String
writeToParcel
fun writeToParcel(
dest: Parcel,
flags: Int
): Unit
Flatten this object in to a Parcel.
Parameters | |
---|---|
dest |
Parcel: This value cannot be null . |
flags |
Int: Additional flags about how the object should be written. May be 0 or PARCELABLE_WRITE_RETURN_VALUE . Value is either 0 or a combination of android.os.Parcelable#PARCELABLE_WRITE_RETURN_VALUE , and android.os.Parcelable.PARCELABLE_ELIDE_DUPLICATES |
Properties
CREATOR
static val CREATOR: Parcelable.Creator<ReadMedicalResourcesResponse!>