Class AltBeacon

  • All Implemented Interfaces:
    Parcelable, Serializable

    public class AltBeacon
    extends Beacon

    The AltBeacon class represents a single hardware AltBeacon detected by an Android device. It is more specific than the Beacon class in that it provides access to the #mfgReserved field.

    An AltBeacon is identified by a unique three part identifier. The first identifier Id1 is normally used across an organization, the second identifier Id2 is used to group beacons and the third identifier Id3 is used to uniquely identify a specific beacon (in combination with the other two identifiers.)

    See Also:
    Serialized Form
    • Field Detail

      • CREATOR

        public static final Parcelable.Creator<AltBeacon> CREATOR
        Required for making object Parcelable. If you override this class, you must provide an equivalent version of this method.
    • Constructor Detail

      • AltBeacon

        protected AltBeacon​(Beacon beacon)
        Copy constructor from base class
        Parameters:
        beacon -
      • AltBeacon

        protected AltBeacon​(Parcel in)
        Required for making object Parcelable
    • Method Detail

      • getMfgReserved

        public int getMfgReserved()
        Returns a field with a value from 0-255 that can be used for the purposes specified by the manufacturer. The manufacturer specifications for the beacon should be checked before using this field, and the manufacturer should be checked against the Beacon#mManufacturer field
        Returns:
        mfgReserved