ChangeLogsResponse.DeletedLog
public
static
final
class
ChangeLogsResponse.DeletedLog
extends Object
java.lang.Object | |
↳ | 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(String deletedRecordId, long deletedTime)
|
Public methods | |
---|---|
String
|
getDeletedRecordId()
Returns record id of the record deleted. |
Instant
|
getDeletedTime()
Returns timestamp when the record was deleted. |
Inherited methods | |
---|---|
Public constructors
DeletedLog
public DeletedLog (String deletedRecordId, long deletedTime)
Parameters | |
---|---|
deletedRecordId |
String : This value cannot be null . |
deletedTime |
long |
Public methods
getDeletedRecordId
public String getDeletedRecordId ()
Returns record id of the record deleted.
Returns | |
---|---|
String |
This value cannot be null . |
getDeletedTime
public Instant getDeletedTime ()
Returns timestamp when the record was deleted.
Returns | |
---|---|
Instant |
This value cannot be null . |