public class IBeaconDevice extends BluetoothLeDevice
CREATOR, MAX_RSSI_LOG_SIZE| Constructor and Description |
|---|
IBeaconDevice(BluetoothDevice device,
int rssi,
byte[] scanRecord)
Instantiates a new iBeacon device.
|
IBeaconDevice(BluetoothDevice device,
int rssi,
byte[] scanRecord,
long timestamp)
Instantiates a new iBeacon device.
|
IBeaconDevice(BluetoothLeDevice device)
Will try to convert a
BluetoothLeDevice into an
iBeacon Device. |
| Modifier and Type | Method and Description |
|---|---|
double |
getAccuracy()
Gets the estimated Accuracy of the reading in meters based on
a simple running average of the last
BluetoothLeDevice.MAX_RSSI_LOG_SIZE
samples. |
int |
getCalibratedTxPower()
Gets the calibrated TX power of the iBeacon device as reported.
|
int |
getCompanyIdentifier()
Gets the iBeacon company identifier.
|
IBeaconUtils.IBeaconDistanceDescriptor |
getDistanceDescriptor()
Gets the estimated Distance descriptor.
|
IBeaconManufacturerData |
getIBeaconData()
Gets the iBeacon manufacturing data.
|
int |
getMajor()
Gets the iBeacon Major value.
|
int |
getMinor()
Gets the iBeacon Minor value.
|
java.lang.String |
getUUID()
Gets the iBeacon UUID.
|
describeContents, equals, getAddress, getAdRecordStore, getBluetoothDeviceBondState, getBluetoothDeviceClassName, getDevice, getFirstRssi, getFirstTimestamp, getName, getRssi, getRssiLog, getRunningAverageRssi, getScanRecord, getTimestamp, hashCode, toString, updateRssiReading, writeToParcelpublic IBeaconDevice(BluetoothDevice device,
int rssi,
byte[] scanRecord)
device - the devicerssi - the RSSI valuescanRecord - the scanRecordpublic IBeaconDevice(BluetoothDevice device,
int rssi,
byte[] scanRecord,
long timestamp)
device - the devicerssi - the RSSI value of the RSSI measurementscanRecord - the scan recordtimestamp - the timestamp of the RSSI measurementpublic IBeaconDevice(BluetoothLeDevice device)
BluetoothLeDevice into an
iBeacon Device.device - the devicepublic double getAccuracy()
BluetoothLeDevice.MAX_RSSI_LOG_SIZE
samples.public int getCalibratedTxPower()
public int getCompanyIdentifier()
public IBeaconUtils.IBeaconDistanceDescriptor getDistanceDescriptor()
public IBeaconManufacturerData getIBeaconData()
public int getMajor()
public int getMinor()
public java.lang.String getUUID()