public final class Beacon
extends java.lang.Object
implements android.os.Parcelable
Beacon
object.Modifier and Type | Field and Description |
---|---|
static android.os.Parcelable.Creator<Beacon> |
CREATOR
The constant CREATOR.
|
Constructor and Description |
---|
Beacon(java.lang.String proximityUUID,
java.lang.String name,
java.lang.String macAddress,
int major,
int minor,
int measuredPower,
int rssi)
Instantiates a new Beacon.
|
Modifier and Type | Method and Description |
---|---|
int |
describeContents() |
boolean |
equals(java.lang.Object o) |
double |
getAccuracy()
Gets accuracy.
|
java.lang.String |
getMacAddress()
Gets MAC address.
|
int |
getMajor()
Gets major.
|
int |
getMeasuredPower()
Gets measured power.
|
int |
getMinor()
Gets minor.
|
java.lang.String |
getName()
Gets name.
|
Proximity |
getProximity()
Gets proximity.
|
java.lang.String |
getProximityUUID()
Gets proximity UUID.
|
int |
getRssi()
Gets rssi.
|
int |
hashCode() |
java.lang.String |
toString() |
void |
writeToParcel(android.os.Parcel dest,
int flags) |
public static final android.os.Parcelable.Creator<Beacon> CREATOR
public Beacon(java.lang.String proximityUUID, java.lang.String name, java.lang.String macAddress, int major, int minor, int measuredPower, int rssi)
proximityUUID
- the proximity UUIDname
- the name of beaconmacAddress
- the mac addressmajor
- the majorminor
- the minormeasuredPower
- the measured powerrssi
- the rssipublic java.lang.String getProximityUUID()
public java.lang.String getName()
public java.lang.String getMacAddress()
public int getMajor()
public int getMinor()
public int getMeasuredPower()
public int getRssi()
public double getAccuracy()
public Proximity getProximity()
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public int describeContents()
describeContents
in interface android.os.Parcelable
public void writeToParcel(android.os.Parcel dest, int flags)
writeToParcel
in interface android.os.Parcelable