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

ExposureInformation

public final class ExposureInformation extends Object
implements Parcelable

This class is deprecated.
no longer used with Exposure Window API.

Information about an exposure, meaning a single diagnosis key over a contiguous period of time specified by durationMinutes.

The client can get the exposure information via getExposureInformation(String).

Nested Class Summary

class ExposureInformation.ExposureInformationBuilder A builder for ExposureInformation

Inherited Constant Summary

Field Summary

public static final Creator<ExposureInformation> CREATOR

Public Method Summary

boolean
int[]
getAttenuationDurationsInMinutes()
Array of durations in minutes at certain radio signal attenuations.
int
getAttenuationValue()
The time-weighted signal strength attenuation value which goes into getTotalRiskScore().
long
getDateMillisSinceEpoch()
Day-level resolution that the exposure occurred, in milliseconds since epoch.
int
getDurationMinutes()
Length of exposure in 5 minute increments, with a 30 minute maximum.
int
getTotalRiskScore()
The total risk calculated for the exposure.
int
getTransmissionRiskLevel()
The transmission risk associated with the matched diagnosis key.
int
String
void
writeToParcel(Parcel dest, int flags)

Inherited Method Summary

Fields

public static final Creator<ExposureInformation> CREATOR

Public Methods

public boolean equals (Object obj)

public int[] getAttenuationDurationsInMinutes ()

Array of durations in minutes at certain radio signal attenuations. The thresholds are defined in getDurationAtAttenuationThresholds().

Array index 0: Sum of durations for all exposures when attenuation < low threshold.

Array index 1: Sum of durations for all exposures when low threshold <= attenuation < high threshold.

Array index 2: Sum of durations for all exposures when attenuation >= high threshold.

public int getAttenuationValue ()

The time-weighted signal strength attenuation value which goes into getTotalRiskScore(). Value will be between 0 and 255.

public long getDateMillisSinceEpoch ()

Day-level resolution that the exposure occurred, in milliseconds since epoch.

public int getDurationMinutes ()

Length of exposure in 5 minute increments, with a 30 minute maximum.

public int getTotalRiskScore ()

The total risk calculated for the exposure. See ExposureConfiguration for more information about what is represented by the risk score, it will be a value 0-4096.

public int getTransmissionRiskLevel ()

The transmission risk associated with the matched diagnosis key.

public int hashCode ()

public String toString ()

public void writeToParcel (Parcel dest, int flags)