public class Eddystone
extends java.lang.Object
implements android.os.Parcelable
Eddystone beacon can either transmit Eddystone-UID or Eddystone-URL packet. Never both.
Periodically beacon sends telemetry information. Available in telemetry
field along
with time it was seen telemetryLastSeenMillis
.
Modifier and Type | Field and Description |
---|---|
int |
calibratedTxPower
Signal strength emitted by the beacon in dBm at 0 meters distance.
|
static android.os.Parcelable.Creator<Eddystone> |
CREATOR |
EddystoneEID |
eid
Eddystone EID information after resolving in google cloud.
|
java.lang.String |
instance
Eddystone-UID instance.
|
MacAddress |
macAddress
MAC address of the beacon.
|
java.lang.String |
namespace
Eddystone-UID namespace.
|
int |
rssi
Received Signal Strength Indication at the moment of scanning.
|
EddystoneTelemetry |
telemetry
Telemetry information for this beacon.
|
java.lang.Long |
telemetryLastSeenMillis
Time in milliseconds when last telemetry was seen for this beacon.
|
java.lang.String |
url
Eddystone-URL url.
|
Constructor and Description |
---|
Eddystone(MacAddress macAddress,
int calibratedTxPower,
int rssi,
java.lang.String namespace,
java.lang.String instance,
java.lang.String url,
java.lang.Long telemetryLastSeenMillis,
EddystoneTelemetry telemetry,
EddystoneEID eid) |
Modifier and Type | Method and Description |
---|---|
int |
describeContents() |
boolean |
equals(java.lang.Object o) |
int |
hashCode() |
boolean |
isEid()
Returns true if Eddystone was encoded as EID
|
boolean |
isUid()
Returns true if Eddystone is setup as Eddystone-UID
|
boolean |
isUrl()
Returns true if Eddystone is setup as Eddystone-URL
|
void |
writeToParcel(android.os.Parcel dest,
int flags) |
public final MacAddress macAddress
public final int calibratedTxPower
public final int rssi
public final java.lang.String namespace
public final java.lang.String instance
public final java.lang.String url
public final java.lang.Long telemetryLastSeenMillis
public final EddystoneTelemetry telemetry
public final EddystoneEID eid
public static final android.os.Parcelable.Creator<Eddystone> CREATOR
public Eddystone(MacAddress macAddress, int calibratedTxPower, int rssi, java.lang.String namespace, java.lang.String instance, java.lang.String url, java.lang.Long telemetryLastSeenMillis, EddystoneTelemetry telemetry, EddystoneEID eid)
public boolean isUid()
public boolean isUrl()
public boolean isEid()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public int describeContents()
describeContents
in interface android.os.Parcelable
public void writeToParcel(android.os.Parcel dest, int flags)
writeToParcel
in interface android.os.Parcelable