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. 

Inherited Constant Summary

Field Summary

public static final Creator<ExposureWindow> CREATOR

Public Method Summary

boolean
int
getCalibrationConfidence()
Confidence of the BLE Transmit power calibration of the transmitting device.
long
getDateMillisSinceEpoch()
Returns the epoch time in milliseconds the exposure occurred.
int
getInfectiousness()
Infectiousness of the TEK that caused this exposure, computed from the days since onset of symptoms using the daysToInfectiousnessMapping.
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

Fields

public static final Creator<ExposureWindow> CREATOR

Public Methods

public boolean equals (Object o)

public int getCalibrationConfidence ()

Confidence of the BLE Transmit power calibration of the transmitting device.

public long getDateMillisSinceEpoch ()

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

public int getInfectiousness ()

Infectiousness of the TEK that caused this exposure, computed from the days since onset of symptoms using the daysToInfectiousnessMapping.

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)