public interface Beacon
Beacon associated with a beacon event such as when a user enters or exits the beacon activation area.
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getBluetoothName()
Get the Bluetooth device name.
|
int |
getDeviceId()
Gets the beacon device id
|
double |
getDistance()
Get an estimate of how far the beacon is away in meters.
|
long |
getDwell()
Gets the dwell time (in milliseconds)
|
int |
getId()
Gets the beacon ping unique id
|
java.lang.String |
getId1()
Get the 1st beacon identifier
|
java.lang.String |
getId2()
Get the 2nd beacon identifier
|
java.lang.String |
getId3()
Get the 3rd beacon identifier
|
double |
getLatitude()
Gets the location latitude for this beacon
|
double |
getLongitude()
Gets the location longitude for this beacon
|
java.lang.String |
getMacAddress()
Gets the beacon MAC address
|
int |
getManufacturer()
A two byte code indicating the beacon manufacturer.
|
int |
getPingType()
Gets the type of beacon event.
|
int |
getRssi()
Get the measured signal strength of the Bluetooth packet.
|
java.util.Date |
getTimestamp()
Gets the timestamp for the beacon event
|
int |
getTxPower()
The calibrated measured Tx power of the Beacon in RSSI This value is baked into an Beacon when it is manufactured,
and it is transmitted with each packet to aid in the mDistance estimate
|
BeaconUser |
getUser()
Gets the user profile associated with this beacon event
|
int getId()
int getDeviceId()
java.util.Date getTimestamp()
int getPingType()
Mask this value with the following values to determine the event type:
16 for ENTER event 32 for EXIT event
Eg:
if (getPingType() & 32) == 32) { Log.d("EXIT event"); }
long getDwell()
int getRssi()
int getTxPower()
double getDistance()
java.lang.String getId1()
java.lang.String getId2()
java.lang.String getId3()
double getLatitude()
double getLongitude()
java.lang.String getMacAddress()
int getManufacturer()
java.lang.String getBluetoothName()
BeaconUser getUser()