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

TemporaryExposureKey

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

Inherited Constant Summary

Field Summary

public static final Creator<TemporaryExposureKey> CREATOR

Public Method Summary

boolean
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
String
void
writeToParcel(Parcel dest, int flags)

Inherited Method Summary

Fields

public static final Creator<TemporaryExposureKey> CREATOR

Public Methods

public boolean equals (Object obj)

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 hashCode ()

public String toString ()

public void writeToParcel (Parcel dest, int flags)