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: Long) |
Public methods | |
---|---|
String |
Returns record id of the record deleted. |
Instant |
Returns timestamp when the record was deleted. |
Public constructors
DeletedLog
Added in API level 34
DeletedLog(
deletedRecordId: String,
deletedTime: Long)
Parameters | |
---|---|
deletedRecordId |
String: This value cannot be null . |
Public methods
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 . |