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.

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 HealthConnectManager#getChangeLogToken.

String

Returns token for future reads using HealthConnectManager#getChangeLogs.

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

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

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 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

Added in API level 34
fun getNextChangesToken(): String

Returns token for future reads using HealthConnectManager#getChangeLogs.

Return
String 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.

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!>