-
- 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
BeaconParserthat is used by the library. AdditionalBeaconParserinstances 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 BeaconfromScanData(Array<byte> scanData, int rssi, BluetoothDevice device)Construct an AltBeacon from a Bluetooth LE packet collected by Android's Bluetooth APIs,including the raw Bluetooth device infotimestampMs excluded for backward compatibility with older api consumers. BeaconfromScanData(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, fromString, getBeaconAdvertisementData, getDataFieldCount, getExtraDataParsers, getHardwareAssistManufacturers, getIdentifier, getIdentifierByteCount, getIdentifierCount, getLayout, getMServiceUuidStartOffset, getMatchingBeaconTypeCode, getMatchingBeaconTypeCodeEndOffset, getMatchingBeaconTypeCodeStartOffset, getPowerCorrection, getServiceUuid, getServiceUuid128Bit, getServiceUuidEndOffset, hashCode, longToByteArray, longToByteArray, setAllowPduOverflow, setBeaconLayout, setHardwareAssistManufacturerCodes, setMatchingBeaconTypeCode, toString -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
fromScanData
@Deprecated() Beacon fromScanData(Array<byte> scanData, int rssi, BluetoothDevice device)
Construct an AltBeacon from a Bluetooth LE packet collected by Android's Bluetooth APIs,including the raw Bluetooth device infotimestampMs excluded for backward compatibility with older api consumers.
- Parameters:
scanData- The actual packet bytesrssi- The measured signal strength of the packetdevice- The Bluetooth device that was detected
-
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
-
-
-
-