Package 

Class Beacon

  • All Implemented Interfaces:
    android.os.Parcelable , java.io.Serializable

    
    public class Beacon
     implements Parcelable, Serializable
                        

    The Beacon class represents a single hardware Beacon detected by an Android device.

    A Beacon is identified by a unique multi-part identifier, with the first of the ordered
    identifiers being more significant for the purposes of grouping beacons.
    
    A Beacon sends a Bluetooth Low Energy (BLE) advertisement that contains these
    three identifiers, along with the calibrated tx power (in RSSI) of the
    Beacon's Bluetooth transmitter.
    
    This class may only be instantiated from a BLE packet, and an RSSI measurement for
    the packet.  The class parses out the identifier, along with the calibrated
    tx power.  It then uses the measured RSSI and calibrated tx power to do a rough
    distance measurement (the mDistance field)