-
- All Implemented Interfaces:
-
java.io.Serializable
public class AltBeaconParser extends BeaconParser
A specific beacon parser designed to parse only AltBeacons from raw BLE packets detected by Android. By default, this is the only
BeaconParser
that is used by the library. AdditionalBeaconParser
instances can get created and registered with the library. See BeaconParser for more information.
-
-
Constructor Summary
Constructors Constructor Description AltBeaconParser()
Constructs an AltBeacon Parser and sets its layout
-
Method Summary
Modifier and Type Method Description Beacon
fromScanData(Array<byte> scanData, int rssi, BluetoothDevice device, long timestampMs)
Construct an AltBeacon from a Bluetooth LE packet collected by Android's Bluetooth APIs, including the raw Bluetooth device info -
Methods inherited from class org.altbeacon.beacon.BeaconParser
addExtraDataParser, equals, getBeaconAdvertisementData, getDataFieldCount, getExtraDataParsers, getHardwareAssistManufacturers, getIdentifier, getIdentifierByteCount, getIdentifierCount, getLayout, getMServiceUuidStartOffset, getMatchingBeaconTypeCode, getMatchingBeaconTypeCodeEndOffset, getMatchingBeaconTypeCodeStartOffset, getPowerCorrection, getServiceUuid, getServiceUuid128Bit, getServiceUuidEndOffset, hashCode, longToByteArray, longToByteArray, setAllowPduOverflow, setBeaconLayout, setHardwareAssistManufacturerCodes, setMatchingBeaconTypeCode
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
fromScanData
Beacon fromScanData(Array<byte> scanData, int rssi, BluetoothDevice device, long timestampMs)
Construct an AltBeacon from a Bluetooth LE packet collected by Android's Bluetooth APIs, including the raw Bluetooth device info
- Parameters:
scanData
- The actual packet bytesrssi
- The measured signal strength of the packetdevice
- The Bluetooth device that was detectedtimestampMs
- The timestamp in milliseconds of the scan execution
-
-
-
-