ChangeLogsResponse
class ChangeLogsResponse : Parcelable
kotlin.Any | |
↳ | android.health.connect.changelog.ChangeLogsResponse |
Response class for HealthConnectManager#getChangeLogs
This is the response to clients fetching changes.
Summary
Nested classes | |
---|---|
A change log holds the |
Inherited constants | |
---|---|
Public methods | |
---|---|
Int | |
MutableList<ChangeLogsResponse.DeletedLog!> |
Returns delete logs for records that have been deleted post the time when the token was requested from |
String |
Returns token for future reads using |
MutableList<Record!> |
Returns records that have been updated or inserted post the time when the given token was generated. |
Boolean |
Returns whether there are more pages available for read. |
Unit |
writeToParcel(dest: Parcel, flags: Int) Flatten this object in to a Parcel. |
Properties | |
---|---|
static Parcelable.Creator<ChangeLogsResponse!> |
Public methods
describeContents
fun describeContents(): Int
Return | |
---|---|
Int |
a bitmask indicating the set of special object types marshaled by this Parcelable object instance. Value is either 0 or android.os.Parcelable#CONTENTS_FILE_DESCRIPTOR |
getDeletedLogs
fun getDeletedLogs(): MutableList<ChangeLogsResponse.DeletedLog!>
Returns delete logs for records that have been deleted post the time when the token was requested from HealthConnectManager#getChangeLogToken
.
This contains record ids of deleted records and the timestamps when the records were deleted.
Return | |
---|---|
MutableList<ChangeLogsResponse.DeletedLog!> |
This value cannot be null . |
getNextChangesToken
fun getNextChangesToken(): String
Returns token for future reads using HealthConnectManager#getChangeLogs
.
Return | |
---|---|
String |
This value cannot be null . |
getUpsertedRecords
fun getUpsertedRecords(): MutableList<Record!>
Returns records that have been updated or inserted post the time when the given token was generated.
Clients can use the last modified time of the record to check when the record was modified.
Return | |
---|---|
MutableList<Record!> |
This value cannot be null . |
hasMorePages
fun hasMorePages(): Boolean
Returns whether there are more pages available for read.
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 |