TemporaryExposureKey

Stay organized with collections Save and categorize content based on your preferences.
public final class TemporaryExposureKey extends Object
implements Parcelable Parcelable

A key generated for advertising over a window of time.

Nested Class Summary

class TemporaryExposureKey.TemporaryExposureKeyBuilder A builder for TemporaryExposureKey

Constant Summary

int DAYS_SINCE_ONSET_OF_SYMPTOMS_UNKNOWN The default value for getDaysSinceOnsetOfSymptoms().

Inherited Constant Summary

Field Summary

public static final Creator<TemporaryExposureKey> CREATOR

Public Method Summary

boolean
int
getDaysSinceOnsetOfSymptoms()
Number of days elapsed between symptom onset and the key being used.
byte[]
getKeyData()
The randomly generated Temporary Exposure Key information.
int
getReportType()
Type of diagnosis associated with a key.
int
getRollingPeriod()
A number describing how long a key is valid.
int
getRollingStartIntervalNumber()
A number describing when a key starts.
int
getTransmissionRiskLevel()
Risk of transmission associated with the person this key came from.
int
getVariantOfConcern()
Variant of concern associated with a key.
int
String
void
writeToParcel(Parcel dest, int flags)

Inherited Method Summary

Constants

public static final int DAYS_SINCE_ONSET_OF_SYMPTOMS_UNKNOWN

Constant Value: 2147483647

Fields

public static final Creator<TemporaryExposureKey> CREATOR

Public Methods

public boolean equals (Object obj)

public int getDaysSinceOnsetOfSymptoms ()

Number of days elapsed between symptom onset and the key being used.

E.g. 2 means the key is 2 days after onset of symptoms. Valid values are -14 to 14.

public byte[] getKeyData ()

The randomly generated Temporary Exposure Key information.

public int getReportType ()

Type of diagnosis associated with a key.

public int getRollingPeriod ()

A number describing how long a key is valid. It is expressed in increments of 10 minutes (e.g. 144 for 24 hours).

public int getRollingStartIntervalNumber ()

A number describing when a key starts. It is equal to startTimeOfKeySinceEpochInSecs / (60 * 10).

public int getTransmissionRiskLevel ()

Risk of transmission associated with the person this key came from.

public int getVariantOfConcern ()

Variant of concern associated with a key.

public int hashCode ()

public String toString ()

public void writeToParcel (Parcel dest, int flags)