Google is committed to advancing racial equity for Black communities. See how.

ExposureWindow

public final class ExposureWindow extends Object
implements Parcelable

A duration of up to 30 minutes during which beacons from a TEK were observed.

Each ExposureWindow corresponds to a single TEK, but one TEK can lead to several ExposureWindow due to random 15-30 minutes cuts. See getExposureWindows() for more info.

The TEK itself isn't exposed by the API.

Nested Class Summary

class ExposureWindow.Builder Builder for ExposureWindow. 
@interface ExposureWindow.ReportType Report type. 

Constant Summary

int REPORT_TYPE_CONFIRMED_CLINICAL_DIAGNOSIS
int REPORT_TYPE_CONFIRMED_TEST
int REPORT_TYPE_RECURSIVE
int REPORT_TYPE_SELF_REPORT

Inherited Constant Summary

Field Summary

public static final Creator<ExposureWindow> CREATOR

Public Method Summary

boolean
long
getDateMillisSinceEpoch()
Returns the epoch time in milliseconds the exposure occurred.
int
getReportType()
Report Type of the TEK that caused this exposure

TEKs with no report type set are returned with reportType=CONFIRMED_TEST.

List<ScanInstance>
getScanInstances()
Sightings of this ExposureWindow, time-ordered.
int
String
void
writeToParcel(Parcel dest, int flags)

Inherited Method Summary

Constants

public static final int REPORT_TYPE_CONFIRMED_CLINICAL_DIAGNOSIS

Constant Value: 2

public static final int REPORT_TYPE_CONFIRMED_TEST

Constant Value: 1

public static final int REPORT_TYPE_RECURSIVE

Constant Value: 4

public static final int REPORT_TYPE_SELF_REPORT

Constant Value: 3

Fields

public static final Creator<ExposureWindow> CREATOR

Public Methods

public boolean equals (Object o)

public long getDateMillisSinceEpoch ()

Returns the epoch time in milliseconds the exposure occurred. This will represent the start of a day in UTC.

public int getReportType ()

Report Type of the TEK that caused this exposure

TEKs with no report type set are returned with reportType=CONFIRMED_TEST.

TEKs with RECURSIVE report type may be dropped because this report type is reserved for future use.

TEKs with REVOKED or invalid report types do not lead to exposures.

public List<ScanInstance> getScanInstances ()

Sightings of this ExposureWindow, time-ordered.

Each sighting corresponds to a scan (of a few seconds) during which a beacon with the TEK causing this exposure was observed.

public int hashCode ()

public String toString ()

public void writeToParcel (Parcel dest, int flags)