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

ScanInstance

public final class ScanInstance extends Object
implements Parcelable

Information about the sighting of a TEK within a BLE scan (of a few seconds).

The TEK itself isn't exposed by the API.

Nested Class Summary

class ScanInstance.Builder Builder for ScanInstance. 

Inherited Constant Summary

Field Summary

public static final Creator<ScanInstance> CREATOR

Public Method Summary

boolean
int
getMinAttenuationDb()
Minimum attenuation of all of this TEK's beacons received during the scan, in dB.
int
getSecondsSinceLastScan()
Seconds elapsed since the previous scan, typically used as a weight.
int
getTypicalAttenuationDb()
Aggregation of the attenuations of all of this TEK's beacons received during the scan, in dB.
int
String
void
writeToParcel(Parcel dest, int flags)

Inherited Method Summary

Fields

public static final Creator<ScanInstance> CREATOR

Public Methods

public boolean equals (Object o)

public int getMinAttenuationDb ()

Minimum attenuation of all of this TEK's beacons received during the scan, in dB.

public int getSecondsSinceLastScan ()

Seconds elapsed since the previous scan, typically used as a weight.

Two example uses: - Summing those values over all sightings of an exposure provides the duration of that exposure. - Summing those values over all sightings in a given attenuation range and over all exposures recreates the durationAtBuckets of v1.

Note that the previous scan may not have led to a sighting of that TEK.

public int getTypicalAttenuationDb ()

Aggregation of the attenuations of all of this TEK's beacons received during the scan, in dB. This is most likely to be an average in the dB domain.

public int hashCode ()

public String toString ()

public void writeToParcel (Parcel dest, int flags)