Added in API level 34

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 Metadata.getId() of a deleted Record.

A change log holds the MedicalResourceId of a deleted medical resource.

Inherited constants
Public methods
Int

Boolean
equals(other: Any?)

MutableList<ChangeLogsResponse.DeletedLog!>

Returns delete logs for records that have been deleted post the time when the token was retrieved.

MutableList<ChangeLogsResponse.DeletedMedicalResource!>

Returns delete logs for medical resources that have been deleted post the time when the token was retrieved.

String

Returns token for future reads using HealthConnectManager.getChangeLogs.

MutableList<MedicalResource!>

Returns medical resources that have been updated or inserted post the time when the given token was generated.

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.

Int

Unit
writeToParcel(dest: Parcel, flags: Int)

Flatten this object in to a Parcel.

Properties
static Parcelable.Creator<ChangeLogsResponse!>

Public methods

describeContents

Added in API level 34
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

equals

Added in API level 34
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.

getDeletedLogs

Added in API level 34
fun getDeletedLogs(): MutableList<ChangeLogsResponse.DeletedLog!>

Returns delete logs for records that have been deleted post the time when the token was retrieved.

This contains record ids of deleted records and the timestamps when the records were deleted.

Return
MutableList<ChangeLogsResponse.DeletedLog!> This value cannot be null.

getDeletedMedicalResources

fun getDeletedMedicalResources(): MutableList<ChangeLogsResponse.DeletedMedicalResource!>

Returns delete logs for medical resources that have been deleted post the time when the token was retrieved.

This contains ids of deleted medical resources and the timestamps when the resources were deleted.

Return
MutableList<ChangeLogsResponse.DeletedMedicalResource!> This value cannot be null.

getNextChangesToken

Added in API level 34
fun getNextChangesToken(): String

Returns token for future reads using HealthConnectManager.getChangeLogs.

Return
String This value cannot be null.

getUpsertedMedicalResources

fun getUpsertedMedicalResources(): MutableList<MedicalResource!>

Returns medical resources that have been updated or inserted post the time when the given token was generated.

Return
MutableList<MedicalResource!> This value cannot be null.

getUpsertedRecords

Added in API level 34
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

Added in API level 34
fun hasMorePages(): Boolean

Returns whether there are more pages available for read.

hashCode

Added in API level 34
fun hashCode(): Int
Return
Int a hash code value for this object.

writeToParcel

Added in API level 34
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

Added in API level 34
static val CREATOR: Parcelable.Creator<ChangeLogsResponse!>