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.)
| Modifier and Type | Class and Description |
|---|---|
static class |
AltBeacon.Builder
Builder class for AltBeacon objects.
|
Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T>| Modifier and Type | Field and Description |
|---|---|
static Parcelable.Creator<AltBeacon> |
CREATOR
Required for making object Parcelable.
|
beaconDataFactory, mBeaconTypeCode, mBluetoothAddress, mBluetoothName, mDataFields, mDistance, mExtraDataFields, mFirstCycleDetectionTimestamp, mIdentifiers, mLastCycleDetectionTimestamp, mManufacturer, mMultiFrameBeacon, mParserIdentifier, mRssi, mServiceUuid, mTxPower, sDistanceCalculator, sHardwareEqualityEnforcedCONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE| Modifier | Constructor and Description |
|---|---|
protected |
AltBeacon() |
protected |
AltBeacon(Beacon beacon)
Copy constructor from base class
|
protected |
AltBeacon(Parcel in)
Required for making object Parcelable
|
| Modifier and Type | Method and Description |
|---|---|
int |
describeContents()
Required for making object Parcelable
|
int |
getMfgReserved()
Returns a field with a value from 0-255 that can be used for the purposes specified by the
manufacturer.
|
void |
writeToParcel(Parcel out,
int flags)
Required for making object Parcelable
|
calculateDistance, equals, getBeaconTypeCode, getBluetoothAddress, getBluetoothName, getDataFields, getDistance, getDistanceCalculator, getExtraDataFields, getFirstCycleDetectionTimestamp, getHardwareEqualityEnforced, getId1, getId2, getId3, getIdentifier, getIdentifiers, getLastCycleDetectionTimestamp, getManufacturer, getMeasurementCount, getPacketCount, getParserIdentifier, getRssi, getRunningAverageRssi, getRunningAverageRssi, getServiceUuid, getTxPower, hashCode, isExtraBeaconData, isMultiFrameBeacon, requestData, setDistanceCalculator, setExtraDataFields, setFirstCycleDetectionTimestamp, setHardwareEqualityEnforced, setLastCycleDetectionTimestamp, setPacketCount, setRssi, setRssiMeasurementCount, setRunningAverageRssi, toStringpublic static final Parcelable.Creator<AltBeacon> CREATOR
protected AltBeacon(Beacon beacon)
beacon - protected AltBeacon()
to make AltBeacon instancesprotected AltBeacon(Parcel in)
public int getMfgReserved()
public int describeContents()
describeContents in interface ParcelabledescribeContents in class Beaconpublic void writeToParcel(Parcel out, int flags)
writeToParcel in interface ParcelablewriteToParcel in class Beacon