Added in API level 34

DeletedLog


class DeletedLog
kotlin.Any
   ↳ android.health.connect.changelog.ChangeLogsResponse.DeletedLog

A change log holds the Metadata.getId() of a deleted Record. For privacy, only unique identifiers of deleted records are returned.

Clients holding copies of data from Health Connect should keep a copy of these unique identifiers along with their contents. When receiving a DeletedLog in ChangeLogsResponse, use the identifiers to delete copy of the data.

Summary

Public constructors
DeletedLog(deletedRecordId: String, deletedTime: Instant)

DeletedLog(deletedRecordId: String, deletedTime: Long)

Public methods
Boolean
equals(other: Any?)

String

Returns record id of the record deleted.

Instant

Returns timestamp when the record was deleted.

Int

Public constructors

DeletedLog

DeletedLog(
    deletedRecordId: String,
    deletedTime: Instant)
Parameters
deletedRecordId String: This value cannot be null.
deletedTime Instant: This value cannot be null.

DeletedLog

Added in API level 34
DeletedLog(
    deletedRecordId: String,
    deletedTime: Long)

Deprecated: Use DeletedLog(java.lang.String,java.time.Instant).

Parameters
deletedRecordId String: This value cannot be null.

Public methods

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.

getDeletedRecordId

Added in API level 34
fun getDeletedRecordId(): String

Returns record id of the record deleted.

Return
String This value cannot be null.

getDeletedTime

Added in API level 34
fun getDeletedTime(): Instant

Returns timestamp when the record was deleted.

Return
Instant This value cannot be null.

hashCode

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