public class Beacon
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
android.bluetooth.BluetoothDevice |
device |
int |
rssi |
byte[] |
scanRecord |
int |
txPower |
| Constructor and Description |
|---|
Beacon(android.bluetooth.BluetoothDevice device,
int rssi,
byte[] scanRecord) |
| Modifier and Type | Method and Description |
|---|---|
static Beacon |
create(android.bluetooth.BluetoothDevice device,
int rssi,
byte[] scanRecord) |
boolean |
equals(java.lang.Object o) |
double |
getDistance()
Gets distance from BLE beacon to mobile device in meters
|
Proximity |
getProximity() |
int |
hashCode() |
java.lang.String |
toString() |
public final android.bluetooth.BluetoothDevice device
public final int rssi
public final byte[] scanRecord
public final int txPower
public Beacon(android.bluetooth.BluetoothDevice device,
int rssi,
byte[] scanRecord)
public static Beacon create(android.bluetooth.BluetoothDevice device, int rssi, byte[] scanRecord)
public double getDistance()
public Proximity getProximity()
public java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object