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

ExposureSummary

public final class ExposureSummary extends Object
implements Parcelable Parcelable

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

Summary information about recent exposures.

The client can get this information via getExposureSummary(String).

Nested Class Summary

class ExposureSummary.ExposureSummaryBuilder A builder for ExposureSummary

Inherited Constant Summary

Field Summary

public static final Creator<ExposureSummary> CREATOR

Public Method Summary

boolean
int[]
getAttenuationDurationsInMinutes()
Array of durations in minutes at certain radio signal attenuations.
int
getDaysSinceLastExposure()
Days since last match to a diagnosis key from the server.
int
getMatchedKeyCount()
Number of matched diagnosis keys.
int
getMaximumRiskScore()
The highest risk score of all exposure incidents, it will be a value 0-4096.
int
getSummationRiskScore()
The summation of risk scores of all exposure incidents.
int
String
void
writeToParcel(Parcel dest, int flags)

Inherited Method Summary

Fields

public static final Creator<ExposureSummary> 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.

These durations are aggregated across all exposures and capped at 30 minutes.

public int getDaysSinceLastExposure ()

Days since last match to a diagnosis key from the server. 0 is today, 1 is yesterday, etc. Only valid if getMatchedKeyCount() > 0.

public int getMatchedKeyCount ()

Number of matched diagnosis keys.

public int getMaximumRiskScore ()

The highest risk score of all exposure incidents, it will be a value 0-4096.

public int getSummationRiskScore ()

The summation of risk scores of all exposure incidents.

public int hashCode ()

public String toString ()

public void writeToParcel (Parcel dest, int flags)