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

Object clone()

Creates and returns a copy of this object.

boolean equals(Object obj)

Indicates whether some other object is "equal to" this one.

void finalize()

Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.

final Class<?> getClass()

Returns the runtime class of this Object.

int hashCode()

Returns a hash code value for the object.

final void notify()

Wakes up a single thread that is waiting on this object's monitor.

final void notifyAll()

Wakes up all threads that are waiting on this object's monitor.

String toString()

Returns a string representation of the object.

final void wait(long timeoutMillis, int nanos)

Causes the current thread to wait until it is awakened, typically by being notified or interrupted, or until a certain amount of real time has elapsed.

final void wait(long timeoutMillis)

Causes the current thread to wait until it is awakened, typically by being notified or interrupted, or until a certain amount of real time has elapsed.

final void wait()

Causes the current thread to wait until it is awakened, typically by being notified or interrupted.

Public constructors

DeletedLog

Added in API level 34
public DeletedLog (String deletedRecordId, 
                long deletedTime)

Parameters
deletedRecordId String: This value cannot be null.

deletedTime long

Public methods

getDeletedRecordId

Added in API level 34
public String getDeletedRecordId ()

Returns record id of the record deleted.

Returns
String This value cannot be null.

getDeletedTime

Added in API level 34
public Instant getDeletedTime ()

Returns timestamp when the record was deleted.

Returns
Instant This value cannot be null.