public class Beacon
extends java.lang.Object
implements java.lang.Cloneable
Modifier and Type | Class and Description |
---|---|
static class |
Beacon.MovingState |
static class |
Beacon.Proximity
The proximity enum of the beacon.
|
Modifier and Type | Field and Description |
---|---|
static int |
CONNECTED
The connected status.
|
static <any> |
CREATOR |
static int |
DISCONNECTED
The disconnected status.
|
static java.lang.String |
FV_10 |
static java.lang.String |
FV_20 |
static java.lang.String |
FV_21 |
static java.lang.String |
FV_22 |
static java.lang.String |
FV_23 |
static java.lang.String |
FV_30 |
static java.lang.String |
FV_31 |
static java.lang.String |
FV_33 |
static java.lang.String |
FV_40 |
static java.lang.String |
FV_41 |
static java.lang.String |
FV_42 |
static java.lang.String |
FV_43 |
static java.lang.String |
FV_44 |
static java.lang.String |
HW_A0 |
static java.lang.String |
HW_B0 |
static java.lang.String |
HW_C0 |
static java.lang.String |
HW_C1 |
static java.lang.String |
HW_C8 |
Modifier and Type | Method and Description |
---|---|
Beacon |
clone() |
int |
describeContents() |
boolean |
equals(java.lang.Object that) |
int |
getAccelerometerCount()
Get the trigger count of the acceleration sensor of beacon.
|
double |
getAccuracy()
Get the accuracy to the beacon.The accuracy is effected by the
environment.
|
AdvertisingInterval |
getAdvertisingInterval()
Get the advertising interval of the beacon
|
BaseSettings |
getBaseSettings()
Get the base settings
BaseSettings of the
beacon. |
int |
getBatteryLevel()
Get the rest percent of the battery level.
|
TLM |
getEddystoneTLM() |
EddystoneTLMInterval |
getEddystoneTLMInterval() |
java.lang.String |
getEddystoneUID() |
java.lang.String |
getEddystoneURL() |
java.lang.String |
getFirmwareVersion()
Get the firmware version of the beacon.
|
java.lang.String |
getHardwareModelName()
Get the hardware model of the beacon
|
java.lang.Double |
getLight()
Get the illumination intensity of the beacon.
|
java.lang.String |
getMacAddress()
Get the mac address of the beacon.
|
java.lang.Integer |
getMajor()
Get the major of the beacon.
|
int |
getMeasuredPower()
Get the measured power(mrssi) of the beacon.
|
java.lang.Integer |
getMinor()
Get the minor of the beacon.
|
Beacon.MovingState |
getMovingState()
Get the moving state of the beacon.
|
Beacon.Proximity |
getProximity()
Get the proximity of the beacon.
|
java.lang.String |
getProximityUUID()
Get the UUID of the beacon.
|
int |
getRssi()
Get the rssi of the beacon.
|
java.lang.Integer |
getSecondMajor() |
java.lang.Integer |
getSecondMinor() |
java.lang.String |
getSecondProximityUUID() |
SecureBroadcastInterval |
getSecureBroadcastInterval()
Get the rotation time of secure broadcast of beacon.
|
SensorSettings |
getSensorSettings()
Get the sensor settings of the beacon.
|
java.lang.String |
getSerialNumber()
Get the SN of the beacon.
|
java.lang.Integer |
getTemperature()
Get the environment temperature of the beacon.
|
TransmitPower |
getTransmitPower()
Get the transmit power of the beacon.
|
int |
hashCode() |
boolean |
isAliBeaconEnabled()
Whether the beacon has enabled AliBeacon function or not.
|
boolean |
isBackgroundEnhancementEnabled()
Whether the beacon has enabled background enhancement function or not.
|
boolean |
isEddystoneEIDEnable() |
boolean |
isEddystoneEnabled() |
boolean |
isEddystoneOnly() |
boolean |
isEddystoneTLMEnabled() |
boolean |
isEddystoneUIDEnabled() |
boolean |
isEddystoneURLEnabled() |
boolean |
isEnergySavingEnabled()
Whether the beacon has enabled energy saving function or not.
|
boolean |
isIBeaconEnabled()
Whether the beacon has enabled iBeacon function or not.
|
boolean |
isPasswordEnabled()
Whether the beacon has enabled password function or not.
|
boolean |
isSecondIBeaconEnabled() |
boolean |
isSecretEnabled()
Whether the beacon has enabled secret function or not.
|
boolean |
isShakingEnabled() |
java.lang.String |
toString() |
void |
writeToParcel(Parcel out,
int flags) |
public static final int CONNECTED
public static final int DISCONNECTED
public static final java.lang.String FV_10
public static final java.lang.String FV_20
public static final java.lang.String FV_21
public static final java.lang.String FV_22
public static final java.lang.String FV_23
public static final java.lang.String FV_30
public static final java.lang.String FV_31
public static final java.lang.String FV_33
public static final java.lang.String FV_40
public static final java.lang.String FV_41
public static final java.lang.String FV_42
public static final java.lang.String FV_43
public static final java.lang.String FV_44
public static final java.lang.String HW_A0
public static final java.lang.String HW_B0
public static final java.lang.String HW_C0
public static final java.lang.String HW_C1
public static final java.lang.String HW_C8
public static final <any> CREATOR
public int describeContents()
public void writeToParcel(Parcel out, int flags)
public Beacon clone() throws java.lang.CloneNotSupportedException
clone
in class java.lang.Object
java.lang.CloneNotSupportedException
public java.lang.String getSerialNumber()
public Beacon.MovingState getMovingState()
Beacon.MovingState
public int getBatteryLevel()
public java.lang.String getHardwareModelName()
public java.lang.String getFirmwareVersion()
public java.lang.Integer getTemperature()
public java.lang.Double getLight()
public int getAccelerometerCount()
Integer.MAX_VALUE
means the beacon has no accelerator
sensor or the accelerator sensor is disabled.public double getAccuracy()
public Beacon.Proximity getProximity()
Beacon.Proximity
.public int getRssi()
public int getMeasuredPower()
public java.lang.Integer getMajor()
public java.lang.Integer getSecondMajor()
public java.lang.Integer getMinor()
public java.lang.Integer getSecondMinor()
public java.lang.String getMacAddress()
public java.lang.String getProximityUUID()
public java.lang.String getSecondProximityUUID()
public BaseSettings getBaseSettings()
BaseSettings
of the
beacon.public SecureBroadcastInterval getSecureBroadcastInterval()
public AdvertisingInterval getAdvertisingInterval()
AdvertisingInterval
public TransmitPower getTransmitPower()
TransmitPower
public boolean isIBeaconEnabled()
public boolean isSecondIBeaconEnabled()
public boolean isAliBeaconEnabled()
public boolean isBackgroundEnhancementEnabled()
public boolean isSecretEnabled()
public boolean isPasswordEnabled()
public boolean isEnergySavingEnabled()
public SensorSettings getSensorSettings()
public boolean isEddystoneEnabled()
public boolean isEddystoneUIDEnabled()
public boolean isEddystoneURLEnabled()
public boolean isEddystoneTLMEnabled()
public java.lang.String getEddystoneUID()
public java.lang.String getEddystoneURL()
public TLM getEddystoneTLM()
public EddystoneTLMInterval getEddystoneTLMInterval()
public boolean isEddystoneEIDEnable()
public boolean isEddystoneOnly()
public boolean isShakingEnabled()
public boolean equals(java.lang.Object that)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object