Package 

Class AltBeaconParser

  • 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. Additional BeaconParser instances can get created and registered with the library. See BeaconParser for more information.

    • Field Summary

      Fields 
      Modifier and Type Field Description
      public final static String TAG
    • 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
    • Constructor Detail

      • AltBeaconParser

        AltBeaconParser()
        Constructs an AltBeacon Parser and sets its layout
    • 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 bytes
        rssi - The measured signal strength of the packet
        device - The Bluetooth device that was detected
        timestampMs - The timestamp in milliseconds of the scan execution