LogReader
public
class
LogReader
extends Object
| java.lang.Object | |
| ↳ | android.adservices.ondevicepersonalization.LogReader |
This class is deprecated.
The ODP APIs are deprecated and will not be supported in future Android releases.
There is no direct replacement API available. Developers currently integrated with these APIs
must cease further integration efforts. For comprehensive details regarding this deprecation and
the future roadmap of Privacy Sandbox on Android, please consult the official Privacy Sandbox
developer documentation and announcements:
https://privacysandbox.google.com
An interface to a read logs from REQUESTS and EVENTS Used as a Data Access Object for the REQUESTS and EVENTS table.
Summary
Public methods | |
|---|---|
List<EventLogRecord>
|
getJoinedEvents(Instant startTime, Instant endTime)
Retrieves a List of EventLogRecord with its corresponding RequestLogRecord written by this IsolatedService within the specified time range. |
List<RequestLogRecord>
|
getRequests(Instant startTime, Instant endTime)
Retrieves a List of RequestLogRecords written by this IsolatedService within the specified time range. |
Inherited methods | |
|---|---|
Public methods
getJoinedEvents
public List<EventLogRecord> getJoinedEvents (Instant startTime, Instant endTime)
Retrieves a List of EventLogRecord with its corresponding RequestLogRecord written by this
IsolatedService within the specified time range.
This method may take several seconds to complete, so it should
only be called from a worker thread.
| Parameters | |
|---|---|
startTime |
Instant: This value cannot be null. |
endTime |
Instant: This value cannot be null. |
| Returns | |
|---|---|
List<EventLogRecord> |
This value cannot be null. |
getRequests
public List<RequestLogRecord> getRequests (Instant startTime, Instant endTime)
Retrieves a List of RequestLogRecords written by this IsolatedService within
the specified time range.
This method may take several seconds to complete, so it should
only be called from a worker thread.
| Parameters | |
|---|---|
startTime |
Instant: This value cannot be null. |
endTime |
Instant: This value cannot be null. |
| Returns | |
|---|---|
List<RequestLogRecord> |
This value cannot be null. |